From 12ccc2eb9e3764ee6270ef9cbc173ab84d17affa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Sat, 24 Feb 2024 23:34:07 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=89=EB=84=A4=EC=9E=84=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=ED=94=84=EB=A1=9C=ED=86=A0=EC=BD=9C=20=EC=9E=91?= =?UTF-8?q?=EC=97=85=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Assets/0_Scenes/Game.unity | 2 +- .../Assets/1_Script/System/Http/Protocol.cs | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Client/Assets/0_Scenes/Game.unity b/Client/Assets/0_Scenes/Game.unity index 5b65b4fd..59c8c44b 100644 --- a/Client/Assets/0_Scenes/Game.unity +++ b/Client/Assets/0_Scenes/Game.unity @@ -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 diff --git a/Client/Assets/1_Script/System/Http/Protocol.cs b/Client/Assets/1_Script/System/Http/Protocol.cs index fcf051d4..4d277f85 100644 --- a/Client/Assets/1_Script/System/Http/Protocol.cs +++ b/Client/Assets/1_Script/System/Http/Protocol.cs @@ -18,6 +18,7 @@ public enum Protocol EquipChange = 200,//Àåºñ º¯°æ DeckChange = 201,//Àåºñ º¯°æ + NicknameChange = 202,//´Ð³×ÀÓ º¯°æ } #region 100 : Downlode @@ -192,4 +193,30 @@ public class DeckChangeResp : Request CreateRequest(protocol, onRequestFinished, new DeckChangeReq(deck_id, deck_unit), HTTPMethods.Post, null); } } +#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 +{ + private Protocol protocol = Protocol.NicknameChange; + public string nickname { get; set; } + public ulong cash { get; set; } + + public void Request(Action onRequestFinished, string newNickname) + { + CreateRequest(protocol, onRequestFinished, new NicknameChangeReq(newNickname), HTTPMethods.Post, null); + } +} #endregion \ No newline at end of file