-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from SeoulTechTCPGame/develop-LANMulti
같은 네트워크 내에서 상대방 탐색 구현
- Loading branch information
Showing
12 changed files
with
1,747 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 7 additions & 52 deletions
59
Assets/Common Scripts/NetworkMessage/UserNetworkMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,20 @@ | ||
using Mirror; | ||
using System; | ||
|
||
#region 유저 정보를 요청 시 송신할 메세지 약속 | ||
#region 클라이언트에서 유저 정보 전송 시 메세지 | ||
[Serializable] | ||
public struct RequestUserDataMessage : NetworkMessage | ||
public struct OpponentUserDataMessage : NetworkMessage | ||
{ | ||
public string userId; | ||
} | ||
|
||
[Serializable] | ||
public struct ResponseUserDataMessage : NetworkMessage | ||
{ | ||
public string nickname; | ||
public int totalUserCount; | ||
public int userRank; | ||
public int playCount; | ||
public int winCount; | ||
public byte[] profileImage; | ||
public bool success; | ||
} | ||
#endregion | ||
|
||
#region 회원 가입 시 송신할 메세지 약속 | ||
[Serializable] | ||
public struct RequestUserSignUpMessage : NetworkMessage | ||
{ | ||
public string userId; | ||
public string nickname; | ||
} | ||
|
||
[Serializable] | ||
public struct ResponseUserSignUpMessage : NetworkMessage | ||
{ | ||
public bool success; | ||
public string userName; | ||
public bool isGuest; | ||
} | ||
#endregion | ||
|
||
#region 이미지 업로드 시 송수신할 메세지 정의 | ||
#region 해당 도전 수락 메세지 | ||
[Serializable] | ||
public struct RequestProfileImageUploadMessage : NetworkMessage | ||
{ | ||
public string userId; | ||
public byte[] image; | ||
} | ||
|
||
public struct ResponseProfileImageUploadMessage : NetworkMessage | ||
{ | ||
public bool success; | ||
} | ||
#endregion | ||
|
||
#region 닉네임 변경 시 송수신할 메세지 정의 | ||
public struct RequestChangeUserNameMessage: NetworkMessage | ||
{ | ||
public string userId; | ||
public string nickname; | ||
} | ||
|
||
public struct ResponseChangeUserNameMessage : NetworkMessage | ||
public struct ConnectionAcceptanceMessage : NetworkMessage | ||
{ | ||
public bool success; | ||
public bool isDupcliate; | ||
public bool doAccept; | ||
} | ||
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.