From 512632fdc9ba4035ce8a5788346b32a65f8cd9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Thu, 14 Mar 2024 21:24:48 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8D=B0=EC=9D=BC=EB=A6=AC=20=EC=83=81?= =?UTF-8?q?=ED=92=88=20=EB=B0=98=ED=99=98=20=EC=84=B8=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Assets/1_Script/MainCtrl.cs | 6 +++++- .../Assets/1_Script/System/Http/Protocol.cs | 21 +++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/Client/Assets/1_Script/MainCtrl.cs b/Client/Assets/1_Script/MainCtrl.cs index d809dab3..7ff3eef7 100644 --- a/Client/Assets/1_Script/MainCtrl.cs +++ b/Client/Assets/1_Script/MainCtrl.cs @@ -133,7 +133,11 @@ public class MainCtrl : MonoBehaviour Statics.gold = data.gold; Statics.cash = data.cash; - GameManager.Instance.NextScene(GameManager.eScene.Game); + if(data.new_user) //½Å±Ô À¯Àú + GameManager.Instance.NextScene(GameManager.eScene.Play); + else + GameManager.Instance.NextScene(GameManager.eScene.Game); + } else { diff --git a/Client/Assets/1_Script/System/Http/Protocol.cs b/Client/Assets/1_Script/System/Http/Protocol.cs index af03b3b0..4c1b0258 100644 --- a/Client/Assets/1_Script/System/Http/Protocol.cs +++ b/Client/Assets/1_Script/System/Http/Protocol.cs @@ -67,12 +67,14 @@ public class LoginResp : Request public string nickname { get; set; } public ulong gold { get; set; } public ulong cash { get; set; } + public bool new_user { get; set; } public List dynamic_data { get; set; } public List deck_unit { get; set; } public List deck_info { get; set; } public List equipment { get; set; } - public List consumableItem { get; set; } - public List etcItem { get; set; } + public List consumable_item { get; set; } + public List etc_item { get; set; } + public List reset_shop_item { get; set; } public void Request(LoginReq loginReq, Action onRequestFinished, Action errorRequestFinished) { @@ -301,4 +303,19 @@ public class EtcItem public long etc_item_data_id { get; set; } public int count { get; set; } +} + +public class ResetShopItem +{ + public long id { get; set; } + + public long reset_shop_item_data_id { get; set; } + public string name { get; set; } + public long shop_index { get; set; } + public eBuyType buy_type { get; set; } + public int buy { get; set; } + public long reward { get; set; } + public int buy_count { get; set; } + public int count { get; set; } + public DateTime end_date { get; set; } } \ No newline at end of file