1
This commit is contained in:
parent
25f147cd7d
commit
789068d346
@ -45,6 +45,9 @@ type MsgHandler interface {
|
||||
CMStartGame(*f5.MsgHdr, *CMStartGame)
|
||||
CMCancel(*f5.MsgHdr, *CMCancel)
|
||||
CMSetReady(*f5.MsgHdr, *CMSetReady)
|
||||
CMSetSpecSkill(*f5.MsgHdr, *CMSetSpecSkill)
|
||||
CMChooseHero(*f5.MsgHdr, *CMChooseHero)
|
||||
CMChooseMap(*f5.MsgHdr, *CMChooseMap)
|
||||
CMGrantInvitePermission(*f5.MsgHdr, *CMGrantInvitePermission)
|
||||
}
|
||||
|
||||
@ -78,6 +81,15 @@ func (this *MsgHandlerImpl) CMCancel(hdr *f5.MsgHdr, msg *CMCancel) {
|
||||
func (this *MsgHandlerImpl) CMSetReady(hdr *f5.MsgHdr, msg *CMSetReady) {
|
||||
}
|
||||
|
||||
func (this *MsgHandlerImpl) CMSetSpecSkill(hdr *f5.MsgHdr, msg *CMSetSpecSkill) {
|
||||
}
|
||||
|
||||
func (this *MsgHandlerImpl) CMChooseHero(hdr *f5.MsgHdr, msg *CMChooseHero) {
|
||||
}
|
||||
|
||||
func (this *MsgHandlerImpl) CMChooseMap(hdr *f5.MsgHdr, msg *CMChooseMap) {
|
||||
}
|
||||
|
||||
func (this *MsgHandlerImpl) CMGrantInvitePermission(hdr *f5.MsgHdr, msg *CMGrantInvitePermission) {
|
||||
}
|
||||
|
||||
@ -165,6 +177,30 @@ func (this *SMSetReady) GetNetMsgId() uint16 {
|
||||
return uint16(SMMessageIdE__SMSetReady)
|
||||
}
|
||||
|
||||
func (this *CMSetSpecSkill) GetNetMsgId() uint16 {
|
||||
return uint16(CMMessageIdE__CMSetSpecSkill)
|
||||
}
|
||||
|
||||
func (this *SMSetSpecSkill) GetNetMsgId() uint16 {
|
||||
return uint16(SMMessageIdE__SMSetSpecSkill)
|
||||
}
|
||||
|
||||
func (this *CMChooseHero) GetNetMsgId() uint16 {
|
||||
return uint16(CMMessageIdE__CMChooseHero)
|
||||
}
|
||||
|
||||
func (this *SMChooseHero) GetNetMsgId() uint16 {
|
||||
return uint16(SMMessageIdE__SMChooseHero)
|
||||
}
|
||||
|
||||
func (this *CMChooseMap) GetNetMsgId() uint16 {
|
||||
return uint16(CMMessageIdE__CMChooseMap)
|
||||
}
|
||||
|
||||
func (this *SMChooseMap) GetNetMsgId() uint16 {
|
||||
return uint16(SMMessageIdE__SMChooseMap)
|
||||
}
|
||||
|
||||
func (this *CMGrantInvitePermission) GetNetMsgId() uint16 {
|
||||
return uint16(CMMessageIdE__CMGrantInvitePermission)
|
||||
}
|
||||
@ -181,6 +217,14 @@ func (this *SMTeamStateNotify) GetNetMsgId() uint16 {
|
||||
return uint16(SMMessageIdE__SMTeamStateNotify)
|
||||
}
|
||||
|
||||
func (this *SMTeamDisbandNotify) GetNetMsgId() uint16 {
|
||||
return uint16(SMMessageIdE__SMTeamDisbandNotify)
|
||||
}
|
||||
|
||||
func (this *SMTeamKickoutNotify) GetNetMsgId() uint16 {
|
||||
return uint16(SMMessageIdE__SMTeamKickoutNotify)
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
handlers[int(CMMessageIdE__CMPing)] = &CsNetMsgHandler{
|
||||
@ -303,6 +347,42 @@ func init() {
|
||||
},
|
||||
}
|
||||
|
||||
handlers[int(CMMessageIdE__CMSetSpecSkill)] = &CsNetMsgHandler{
|
||||
MsgId: int(CMMessageIdE__CMSetSpecSkill),
|
||||
ParseCb: func (data []byte) interface{} {
|
||||
msg := &CMSetSpecSkill{}
|
||||
proto.Unmarshal(data, msg)
|
||||
return msg
|
||||
},
|
||||
Cb: func (hdr *f5.MsgHdr, handler MsgHandler) {
|
||||
handler.CMSetSpecSkill(hdr, hdr.Msg.(*CMSetSpecSkill))
|
||||
},
|
||||
}
|
||||
|
||||
handlers[int(CMMessageIdE__CMChooseHero)] = &CsNetMsgHandler{
|
||||
MsgId: int(CMMessageIdE__CMChooseHero),
|
||||
ParseCb: func (data []byte) interface{} {
|
||||
msg := &CMChooseHero{}
|
||||
proto.Unmarshal(data, msg)
|
||||
return msg
|
||||
},
|
||||
Cb: func (hdr *f5.MsgHdr, handler MsgHandler) {
|
||||
handler.CMChooseHero(hdr, hdr.Msg.(*CMChooseHero))
|
||||
},
|
||||
}
|
||||
|
||||
handlers[int(CMMessageIdE__CMChooseMap)] = &CsNetMsgHandler{
|
||||
MsgId: int(CMMessageIdE__CMChooseMap),
|
||||
ParseCb: func (data []byte) interface{} {
|
||||
msg := &CMChooseMap{}
|
||||
proto.Unmarshal(data, msg)
|
||||
return msg
|
||||
},
|
||||
Cb: func (hdr *f5.MsgHdr, handler MsgHandler) {
|
||||
handler.CMChooseMap(hdr, hdr.Msg.(*CMChooseMap))
|
||||
},
|
||||
}
|
||||
|
||||
handlers[int(CMMessageIdE__CMGrantInvitePermission)] = &CsNetMsgHandler{
|
||||
MsgId: int(CMMessageIdE__CMGrantInvitePermission),
|
||||
ParseCb: func (data []byte) interface{} {
|
||||
|
Loading…
x
Reference in New Issue
Block a user