장비 장착 기반 시스템 작업

This commit is contained in:
김판돌 2023-12-15 22:24:31 +09:00
parent 255339a9ef
commit 933926276c
3 changed files with 16 additions and 3 deletions

View File

@ -11,6 +11,14 @@ namespace Server.SQL
public int id { get; set; } public int id { get; set; }
public int unit_id { get; set; } public int unit_id { get; set; }
public int user_id { get; set; } public int user_id { get; set; }
public int equip0 { get; set; }
public int equip1 { get; set; }
public int equip2 { get; set; }
public int equip3 { get; set; }
public int equip4 { get; set; }
public int equip5 { get; set; }
public int level { get; set; }
public int exp { get; set; }
} }
public class DeckUnitInfoSQL : SQL<DeckUnitInfo> public class DeckUnitInfoSQL : SQL<DeckUnitInfo>

View File

@ -13,6 +13,7 @@ namespace Server.SQL
public int user_id { get; set; } public int user_id { get; set; }
public int equip_unit { get; set; } public int equip_unit { get; set; }
public int rand_stats { get; set; } public int rand_stats { get; set; }
public int equipment_data_id { get; set; }
} }
public class EquipmentrSQL : SQL<Equipment> public class EquipmentrSQL : SQL<Equipment>

View File

@ -10,14 +10,16 @@ namespace Server.Service
public override string Process() public override string Process()
{ {
UserSQL userSql = new UserSQL(); UserSQL userSql = new UserSQL();
DynamicDataSQL dynamicDataSQL = new DynamicDataSQL();
DeckUnitInfoSQL deckUnitInfoSQL = new DeckUnitInfoSQL(); DeckUnitInfoSQL deckUnitInfoSQL = new DeckUnitInfoSQL();
DeckInfoSQL deckInfoSQL = new DeckInfoSQL(); DeckInfoSQL deckInfoSQL = new DeckInfoSQL();
EquipmentrSQL equipmentrSQL = new EquipmentrSQL(); EquipmentrSQL equipmentrSQL = new EquipmentrSQL();
User user; User user;
List<DynamicData> dynamicDataList = dynamicDataSQL.Select();
List<DeckUnitInfo> deckUnitInfoList = null; List<DeckUnitInfo> deckUnitInfoList = null;
List<DeckInfo> deckInfoList = null; List<DeckInfo> deckInfoList = null;
List<Equipment> equipmentList = null; List<Equipment> equipmentList = null;
Console.WriteLine(req.uuid);
if (req.uuid == "") if (req.uuid == "")
{ {
//최초 메일 로그인 //최초 메일 로그인
@ -116,7 +118,7 @@ namespace Server.Service
return makeResp(user, deckUnitInfoList, deckInfoList, equipmentList); return makeResp(user, dynamicDataList, deckUnitInfoList, deckInfoList, equipmentList);
} }
public override Protocol ProtocolValue() => Protocol.Login; public override Protocol ProtocolValue() => Protocol.Login;
@ -127,11 +129,12 @@ namespace Server.Service
return req; return req;
} }
private string makeResp(User user, List<DeckUnitInfo> deck_unit, List<DeckInfo> deck_info, List<Equipment> equipment) private string makeResp(User user, List<DynamicData> dynamic_data, List<DeckUnitInfo> deck_unit, List<DeckInfo> deck_info, List<Equipment> equipment)
{ {
LoginResp resp = new LoginResp(); LoginResp resp = new LoginResp();
resp.nickname = user.nickname; resp.nickname = user.nickname;
resp.uuid = user.uuid; resp.uuid = user.uuid;
resp.dynamic_data = dynamic_data;
resp.deck_unit = deck_unit; resp.deck_unit = deck_unit;
resp.deck_info = deck_info; resp.deck_info = deck_info;
resp.equipment = equipment; resp.equipment = equipment;
@ -158,6 +161,7 @@ namespace Server.Service
{ {
public string uuid; public string uuid;
public string nickname; public string nickname;
public List<DynamicData> dynamic_data;
public List<DeckUnitInfo> deck_unit; public List<DeckUnitInfo> deck_unit;
public List<DeckInfo> deck_info; public List<DeckInfo> deck_info;
public List<Equipment> equipment; public List<Equipment> equipment;