1.6.55
This commit is contained in:
@@ -6,86 +6,83 @@
|
||||
|
||||
internal static class LineupReqGroup
|
||||
{
|
||||
[Handler(CmdType.GetCurLineupDataCsReq)]
|
||||
[Handler(CmdType.CmdGetCurLineupDataCsReq)]
|
||||
public static void OnGetCurLineupDataCsReq(NetSession session, int cmdId, object _)
|
||||
{
|
||||
var response = new GetCurLineupDataScRsp
|
||||
{
|
||||
Retcode = Retcode.RETCODE_RET_SUCC
|
||||
Retcode = (uint)RetcodeStatus.RetSucc
|
||||
};
|
||||
|
||||
response.Lineup = new LineupInfo
|
||||
{
|
||||
ExtraLineupType = ExtraLineupType.LINEUP_NONE,
|
||||
ExtraLineupType = ExtraLineupType.LineupNone,
|
||||
Name = "Squad 1",
|
||||
AvatarList = new List<LineupAvatar>(),
|
||||
LeaderSlot = 5,
|
||||
Foafdgjflmc = 5
|
||||
LeaderSlot = 0,
|
||||
Mp = 5
|
||||
};
|
||||
|
||||
var characters = new int[] { 8001, 1005, 1003 };
|
||||
var characters = new uint[] { 8001, 1307, 1306, 1312 };
|
||||
|
||||
foreach (int id in characters)
|
||||
foreach (uint id in characters)
|
||||
{
|
||||
response.Lineup.AvatarList.Add(new LineupAvatar
|
||||
response.Lineup.AvatarLists.Add(new LineupAvatar
|
||||
{
|
||||
AvatarType = AvatarType.AVATAR_FORMAL_TYPE,
|
||||
CurHealth = new HealthBarInfo { CurHp = 10000, MaxHp = 10000 },
|
||||
Sp = 10000,
|
||||
AvatarType = AvatarType.AvatarFormalType,
|
||||
Hp = 10000,
|
||||
Sp = new AmountInfo { CurAmount = 10000,MaxAmount = 10000},
|
||||
Satiety = 100,
|
||||
Id = id,
|
||||
Slot = response.Lineup.AvatarList.Count
|
||||
Slot = (uint)response.Lineup.AvatarLists.Count
|
||||
});
|
||||
}
|
||||
|
||||
session.Send(CmdType.GetCurLineupDataScRsp, response);
|
||||
session.Send(CmdType.CmdGetCurLineupDataScRsp, response);
|
||||
}
|
||||
|
||||
[Handler(CmdType.GetAllLineupDataCsReq)]
|
||||
[Handler(CmdType.CmdGetAllLineupDataCsReq)]
|
||||
public static void OnGetAllLineupDataCsReq(NetSession session, int cmdId, object data)
|
||||
{
|
||||
var response = new GetAllLineupDataScRsp
|
||||
{
|
||||
Retcode = Retcode.RETCODE_RET_SUCC,
|
||||
Retcode = (uint)RetcodeStatus.RetSucc,
|
||||
CurIndex = 0,
|
||||
LineupList = new List<LineupInfo>()
|
||||
};
|
||||
|
||||
response.LineupList.Add(new LineupInfo
|
||||
response.LineupLists.Add(new LineupInfo
|
||||
{
|
||||
ExtraLineupType = ExtraLineupType.LINEUP_NONE,
|
||||
ExtraLineupType = ExtraLineupType.LineupNone,
|
||||
Name = "Squad 1",
|
||||
AvatarList = new List<LineupAvatar>(),
|
||||
Foafdgjflmc = 5,
|
||||
LeaderSlot = 3
|
||||
Mp = 5,
|
||||
LeaderSlot = 0
|
||||
});
|
||||
|
||||
var characters = new int[] { 8001, 1005, 1003 };
|
||||
var characters = new uint[] { 8001, 1307, 1306, 1312 };
|
||||
|
||||
foreach (int id in characters)
|
||||
foreach (uint id in characters)
|
||||
{
|
||||
response.LineupList[0].AvatarList.Add(new LineupAvatar
|
||||
response.LineupLists[0].AvatarLists.Add(new LineupAvatar
|
||||
{
|
||||
AvatarType = AvatarType.AVATAR_FORMAL_TYPE,
|
||||
CurHealth = new HealthBarInfo { CurHp = 10000, MaxHp = 10000 },
|
||||
Sp = 10000,
|
||||
AvatarType = AvatarType.AvatarFormalType,
|
||||
Sp = new AmountInfo { CurAmount = 10000, MaxAmount = 10000 },
|
||||
Hp = 10000,
|
||||
Satiety = 100,
|
||||
Id = id,
|
||||
Slot = response.LineupList[0].AvatarList.Count
|
||||
Slot = (uint)response.LineupLists[0].AvatarLists.Count
|
||||
});
|
||||
}
|
||||
|
||||
session.Send(CmdType.GetAllLineupDataScRsp, response);
|
||||
session.Send(CmdType.CmdGetAllLineupDataScRsp, response);
|
||||
}
|
||||
|
||||
[Handler(CmdType.ChangeLineupLeaderCsReq)]
|
||||
[Handler(CmdType.CmdChangeLineupLeaderCsReq)]
|
||||
public static void OnChangeLineupLeaderCsReq(NetSession session, int cmdId, object data)
|
||||
{
|
||||
var request = data as ChangeLineupLeaderCsReq;
|
||||
session.Send(CmdType.ChangeLineupLeaderScRsp, new ChangeLineupLeaderScRsp
|
||||
session.Send(CmdType.CmdChangeLineupLeaderScRsp, new ChangeLineupLeaderScRsp
|
||||
{
|
||||
Slot = request.Slot,
|
||||
Retcode = Retcode.RETCODE_RET_SUCC
|
||||
Retcode = (uint)RetcodeStatus.RetSucc
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user