닉네임 변경 프로토콜 작업 완료
This commit is contained in:
parent
7b5ff4e647
commit
12ccc2eb9e
|
|
@ -5808,7 +5808,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &432455696
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ public enum Protocol
|
|||
|
||||
EquipChange = 200,//장비 변경
|
||||
DeckChange = 201,//장비 변경
|
||||
NicknameChange = 202,//´Ð³×ÀÓ º¯°æ
|
||||
}
|
||||
|
||||
#region 100 : Downlode
|
||||
|
|
@ -193,3 +194,29 @@ public class DeckChangeResp : Request<DeckChangeResp>
|
|||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 202 : NicknameChange
|
||||
public class NicknameChangeReq
|
||||
{
|
||||
public string uuid { get; set; }
|
||||
public string newNickname { get; set; }
|
||||
|
||||
public NicknameChangeReq(string newNickname)
|
||||
{
|
||||
this.uuid = Statics.uuid;
|
||||
this.newNickname = newNickname;
|
||||
}
|
||||
}
|
||||
|
||||
public class NicknameChangeResp : Request<NicknameChangeResp>
|
||||
{
|
||||
private Protocol protocol = Protocol.NicknameChange;
|
||||
public string nickname { get; set; }
|
||||
public ulong cash { get; set; }
|
||||
|
||||
public void Request(Action<NicknameChangeResp> onRequestFinished, string newNickname)
|
||||
{
|
||||
CreateRequest(protocol, onRequestFinished, new NicknameChangeReq(newNickname), HTTPMethods.Post, null);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
Loading…
Reference in New Issue