feat: 플레이어 아이디 데이터타입 변경

This commit is contained in:
aube.lee
2025-02-13 10:40:12 +09:00
parent 9156b24991
commit b3ba592a12

View File

@@ -8,7 +8,7 @@ namespace TON
public class PlayerData public class PlayerData
{ {
// 캐릭터 아이디 // 캐릭터 아이디
public int id; public string id;
// 캐릭터 이미지 타입 (w/b) // 캐릭터 이미지 타입 (w/b)
public string type; public string type;
// 캐릭터 이름 // 캐릭터 이름
@@ -30,7 +30,7 @@ namespace TON
public PlayerData(int i, string t, string n) public PlayerData(int i, string t, string n)
{ {
id = i; id = $"P{i:000}";
type = t == "BlackCat" ? "b" : "w"; type = t == "BlackCat" ? "b" : "w";
name = n; name = n;
level = 1; level = 1;