This commit is contained in:
aozhiwei 2024-04-18 17:53:27 +08:00
parent a7603610e5
commit b291fbaa85
3 changed files with 39 additions and 0 deletions

View File

@ -48,6 +48,7 @@ type MsgHandler interface {
CMSetSpecSkill(*f5.MsgHdr, *CMSetSpecSkill) CMSetSpecSkill(*f5.MsgHdr, *CMSetSpecSkill)
CMChooseHero(*f5.MsgHdr, *CMChooseHero) CMChooseHero(*f5.MsgHdr, *CMChooseHero)
CMChooseMap(*f5.MsgHdr, *CMChooseMap) CMChooseMap(*f5.MsgHdr, *CMChooseMap)
CMRefreshUser(*f5.MsgHdr, *CMRefreshUser)
CMGrantInvitePermission(*f5.MsgHdr, *CMGrantInvitePermission) CMGrantInvitePermission(*f5.MsgHdr, *CMGrantInvitePermission)
} }
@ -90,6 +91,9 @@ func (this *MsgHandlerImpl) CMChooseHero(hdr *f5.MsgHdr, msg *CMChooseHero) {
func (this *MsgHandlerImpl) CMChooseMap(hdr *f5.MsgHdr, msg *CMChooseMap) { func (this *MsgHandlerImpl) CMChooseMap(hdr *f5.MsgHdr, msg *CMChooseMap) {
} }
func (this *MsgHandlerImpl) CMRefreshUser(hdr *f5.MsgHdr, msg *CMRefreshUser) {
}
func (this *MsgHandlerImpl) CMGrantInvitePermission(hdr *f5.MsgHdr, msg *CMGrantInvitePermission) { func (this *MsgHandlerImpl) CMGrantInvitePermission(hdr *f5.MsgHdr, msg *CMGrantInvitePermission) {
} }
@ -201,6 +205,14 @@ func (this *SMChooseMap) GetNetMsgId() uint16 {
return uint16(SMMessageIdE__SMChooseMap) return uint16(SMMessageIdE__SMChooseMap)
} }
func (this *CMRefreshUser) GetNetMsgId() uint16 {
return uint16(CMMessageIdE__CMRefreshUser)
}
func (this *SMRefreshUser) GetNetMsgId() uint16 {
return uint16(SMMessageIdE__SMRefreshUser)
}
func (this *CMGrantInvitePermission) GetNetMsgId() uint16 { func (this *CMGrantInvitePermission) GetNetMsgId() uint16 {
return uint16(CMMessageIdE__CMGrantInvitePermission) return uint16(CMMessageIdE__CMGrantInvitePermission)
} }
@ -461,6 +473,18 @@ func init() {
}, },
} }
handlers[int(CMMessageIdE__CMRefreshUser)] = &CsNetMsgHandler{
MsgId: int(CMMessageIdE__CMRefreshUser),
ParseCb: func (data []byte) interface{} {
msg := &CMRefreshUser{}
proto.Unmarshal(data, msg)
return msg
},
Cb: func (hdr *f5.MsgHdr, handler MsgHandler) {
handler.CMRefreshUser(hdr, hdr.Msg.(*CMRefreshUser))
},
}
handlers[int(CMMessageIdE__CMGrantInvitePermission)] = &CsNetMsgHandler{ handlers[int(CMMessageIdE__CMGrantInvitePermission)] = &CsNetMsgHandler{
MsgId: int(CMMessageIdE__CMGrantInvitePermission), MsgId: int(CMMessageIdE__CMGrantInvitePermission),
ParseCb: func (data []byte) interface{} { ParseCb: func (data []byte) interface{} {

View File

@ -20,6 +20,7 @@ enum CMMessageId_e
_CMSetSpecSkill = 115; _CMSetSpecSkill = 115;
_CMChooseHero = 116; _CMChooseHero = 116;
_CMChooseMap = 117; _CMChooseMap = 117;
_CMRefreshUser = 118;
} }
enum SMMessageId_e enum SMMessageId_e
@ -39,6 +40,7 @@ enum SMMessageId_e
_SMSetSpecSkill = 115; _SMSetSpecSkill = 115;
_SMChooseHero = 116; _SMChooseHero = 116;
_SMChooseMap = 117; _SMChooseMap = 117;
_SMRefreshUser = 118;
_SMTeamUpdateNotify = 1001; _SMTeamUpdateNotify = 1001;
_SMTeamStateNotify = 1002; _SMTeamStateNotify = 1002;

View File

@ -132,6 +132,10 @@ message MFTeamMember
optional int32 permission = 8; // optional int32 permission = 8; //
optional int32 is_ready = 9; // optional int32 is_ready = 9; //
optional int32 id = 10; // optional int32 id = 10; //
optional int32 wealth = 11; //
optional int64 total_lucky = 12; // lucky
optional int32 valid_lefttime = 13; //
optional int32 admission_item_num = 14; //
} }
// //
@ -305,6 +309,15 @@ message SMChooseMap
optional string errmsg = 2; // optional string errmsg = 2; //
} }
//
message CMRefreshUser
{
}
message SMRefreshUser
{
}
// //
message CMGrantInvitePermission message CMGrantInvitePermission
{ {