Genesis Game Client Project Setup
This commit is contained in:
16
Assets/02_Scripts/Network/DTOs/ApiResponse.cs
Normal file
16
Assets/02_Scripts/Network/DTOs/ApiResponse.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Newtonsoft.Json;
|
||||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public class ApiResponse<T>
|
||||
{
|
||||
[JsonProperty("data")]
|
||||
public T data;
|
||||
|
||||
[JsonProperty("count")]
|
||||
public int count;
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string message;
|
||||
|
||||
}
|
||||
2
Assets/02_Scripts/Network/DTOs/ApiResponse.cs.meta
Normal file
2
Assets/02_Scripts/Network/DTOs/ApiResponse.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb94c1cecca334c4eb4c5b7fe59a03ff
|
||||
18
Assets/02_Scripts/Network/DTOs/PlayableCharacterDTO.cs
Normal file
18
Assets/02_Scripts/Network/DTOs/PlayableCharacterDTO.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Network.DTO
|
||||
{
|
||||
[Serializable]
|
||||
public class PlayableCharacterDTO
|
||||
{
|
||||
[JsonProperty("characterCode")]
|
||||
public string characterCode;
|
||||
|
||||
[JsonProperty("characterType")]
|
||||
public string characterType;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6d03479a7bef6e4a989f51f2bfdffa1
|
||||
39
Assets/02_Scripts/Network/DTOs/UserCharacterDTO.cs
Normal file
39
Assets/02_Scripts/Network/DTOs/UserCharacterDTO.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Network.DTO
|
||||
{
|
||||
[Serializable]
|
||||
public class UserCharacterDTO
|
||||
{
|
||||
[JsonProperty("userCharacterNo")]
|
||||
public int userCharacterNo;
|
||||
|
||||
[JsonProperty("userNo")]
|
||||
public int userNo;
|
||||
|
||||
[JsonProperty("characterCode")]
|
||||
public string characterCode;
|
||||
|
||||
[JsonProperty("lv")]
|
||||
public int lv;
|
||||
|
||||
[JsonProperty("strStat")]
|
||||
public int strStat;
|
||||
|
||||
[JsonProperty("intStat")]
|
||||
public int intStat;
|
||||
|
||||
[JsonProperty("maxHp")]
|
||||
public int maxHp;
|
||||
|
||||
[JsonProperty("maxMp")]
|
||||
public int maxMp;
|
||||
|
||||
[JsonProperty("defaultControl")]
|
||||
public bool defaultControl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
Assets/02_Scripts/Network/DTOs/UserCharacterDTO.cs.meta
Normal file
2
Assets/02_Scripts/Network/DTOs/UserCharacterDTO.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2cd2049bdb6973d4babce5f871027dc7
|
||||
Reference in New Issue
Block a user