This commit is contained in:
moux23333
2024-01-27 21:08:24 +08:00
parent 22fc0b0848
commit 396cf2de7f
30 changed files with 34183 additions and 1593 deletions

View File

@@ -6,35 +6,44 @@
internal static class AvatarReqGroup
{
[Handler(CmdType.GetAvatarDataCsReq)]
[Handler(CmdType.CmdGetAvatarDataCsReq)]
public static void OnGetAvatarDataCsReq(NetSession session, int cmdId, object data)
{
var request = data as GetAvatarDataCsReq;
var response = new GetAvatarDataScRsp
{
Retcode = Retcode.RETCODE_RET_SUCC,
IsAll = request.IsGetAll,
AvatarList = new List<Avatar>()
Retcode = (uint)RetcodeStatus.RetSucc,
IsAll = request.IsGetAll
};
int[] characters = new int[] { 8001, 1005, 1003 };
uint[] characters = new uint[] { 8001, 1307, 1306, 1312 };
foreach (int id in characters)
foreach (uint id in characters)
{
response.AvatarList.Add(new Avatar
var avatarData = new Avatar
{
BaseAvatarId = id,
Exp = 0,
Level = 1,
Promotion = 0,
Rank = 6,
SkilltreeList = new List<AvatarSkillTree>(),
EquipmentUniqueId = 0
});
};
List<uint> SkillIdEnds = new List<uint> { 1, 2, 3, 4, 7, 101, 102, 103, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210 };
foreach (uint end in SkillIdEnds)
{
avatarData.SkilltreeLists.Add(new AvatarSkillTree
{
PointId = id * 1000 + end,
Level = 1
});
}
response.AvatarLists.Add(avatarData);
}
session.Send(CmdType.GetAvatarDataScRsp, response);
session.Send(CmdType.CmdGetAvatarDataScRsp, response);
}
}
}