GetMultiPathAvatarInfo handler
This commit is contained in:
parent
195d76a92c
commit
63fc7a5888
3 changed files with 16 additions and 8 deletions
|
@ -22,6 +22,7 @@ const HandlerList = [_]struct { CmdID, Action }{
|
|||
.{ CmdID.CmdPlayerLoginCsReq, login.onPlayerLogin },
|
||||
.{ CmdID.CmdPlayerHeartBeatCsReq, misc.onPlayerHeartBeat },
|
||||
.{ CmdID.CmdGetAvatarDataCsReq, avatar.onGetAvatarData },
|
||||
.{ CmdID.CmdGetMultiPathAvatarInfoCsReq, avatar.onGetMultiPathAvatarInfo },
|
||||
.{ CmdID.CmdGetMissionStatusCsReq, mission.onGetMissionStatus },
|
||||
.{ CmdID.CmdGetCurLineupDataCsReq, lineup.onGetCurLineupData },
|
||||
.{ CmdID.CmdGetCurSceneInfoCsReq, scene.onGetCurSceneInfo },
|
||||
|
|
|
@ -29,3 +29,10 @@ pub fn onGetAvatarData(session: *Session, packet: *const Packet, allocator: Allo
|
|||
|
||||
try session.send(CmdID.CmdGetAvatarDataScRsp, rsp);
|
||||
}
|
||||
|
||||
pub fn onGetMultiPathAvatarInfo(session: *Session, _: *const Packet, allocator: Allocator) !void {
|
||||
var rsp = protocol.GetMultiPathAvatarInfoScRsp.init(allocator);
|
||||
try rsp.cur_multi_path_avatar_type_map.append(.{ .key = 1001, .value = .Mar_7thRogueType });
|
||||
|
||||
try session.send(CmdID.CmdGetMultiPathAvatarInfoScRsp, rsp);
|
||||
}
|
||||
|
|
|
@ -22767,7 +22767,7 @@ pub const JDKHDANPJEA = struct {
|
|||
pub usingnamespace protobuf.MessageMixins(@This());
|
||||
};
|
||||
|
||||
pub const PDLCDMEPDDJ = struct {
|
||||
pub const MultiPathAvatarInfo = struct {
|
||||
KBEJIBADOKJ: u32 = 0,
|
||||
avatar_id: MultiPathAvatarType = @enumFromInt(0),
|
||||
FKDENBOKHPO: ArrayList(AvatarSkillTree),
|
||||
|
@ -22819,18 +22819,18 @@ pub const GetMultiPathAvatarInfoCsReq = struct {
|
|||
|
||||
pub const GetMultiPathAvatarInfoScRsp = struct {
|
||||
retcode: u32 = 0,
|
||||
HKNADMABCGG: ArrayList(PDLCDMEPDDJ),
|
||||
FIFIBNJEIGL: ArrayList(FIFIBNJEIGLEntry),
|
||||
multi_path_avatar_info_list: ArrayList(MultiPathAvatarInfo),
|
||||
cur_multi_path_avatar_type_map: ArrayList(CurMultiPathAvatarTypeMapEntry),
|
||||
GMHDHIMDKFI: ArrayList(u32),
|
||||
|
||||
pub const _desc_table = .{
|
||||
.retcode = fd(7, .{ .Varint = .Simple }),
|
||||
.HKNADMABCGG = fd(13, .{ .List = .{ .SubMessage = {} } }),
|
||||
.FIFIBNJEIGL = fd(4, .{ .List = .{ .SubMessage = {} } }),
|
||||
.multi_path_avatar_info_list = fd(13, .{ .List = .{ .SubMessage = {} } }),
|
||||
.cur_multi_path_avatar_type_map = fd(4, .{ .List = .{ .SubMessage = {} } }),
|
||||
.GMHDHIMDKFI = fd(15, .{ .PackedList = .{ .Varint = .Simple } }),
|
||||
};
|
||||
|
||||
pub const FIFIBNJEIGLEntry = struct {
|
||||
pub const CurMultiPathAvatarTypeMapEntry = struct {
|
||||
key: u32 = 0,
|
||||
value: MultiPathAvatarType = @enumFromInt(0),
|
||||
|
||||
|
@ -34265,7 +34265,7 @@ pub const GGCKPLMOOPE = struct {
|
|||
NOGKOKELAKC: ArrayList(CJHMEKCHFDH),
|
||||
AFAPMKPDNAK: ArrayList(GKKAKMDBGAD),
|
||||
DLCOBFIGMMD: ArrayList(CJHMEKCHFDH),
|
||||
HKNADMABCGG: ArrayList(PDLCDMEPDDJ),
|
||||
multi_path_avatar_info_list: ArrayList(MultiPathAvatarInfo),
|
||||
KPMNKMGMEGA: ArrayList(ILDONLKCIDA),
|
||||
GLEAJHKCMEA: ?FJFLOACEAOL = null,
|
||||
LLDHJNLGOPL: u32 = 0,
|
||||
|
@ -34288,7 +34288,7 @@ pub const GGCKPLMOOPE = struct {
|
|||
.NOGKOKELAKC = fd(935, .{ .List = .{ .SubMessage = {} } }),
|
||||
.AFAPMKPDNAK = fd(10, .{ .List = .{ .SubMessage = {} } }),
|
||||
.DLCOBFIGMMD = fd(3, .{ .List = .{ .SubMessage = {} } }),
|
||||
.HKNADMABCGG = fd(1767, .{ .List = .{ .SubMessage = {} } }),
|
||||
.multi_path_avatar_info_list = fd(1767, .{ .List = .{ .SubMessage = {} } }),
|
||||
.KPMNKMGMEGA = fd(176, .{ .List = .{ .SubMessage = {} } }),
|
||||
.GLEAJHKCMEA = fd(12, .{ .SubMessage = {} }),
|
||||
.LLDHJNLGOPL = fd(552, .{ .Varint = .Simple }),
|
||||
|
|
Loading…
Reference in a new issue