1
This commit is contained in:
parent
7b9c30bd9b
commit
36cb9df79f
@ -62,7 +62,7 @@ func (this *app) Update() {
|
||||
}
|
||||
switch handler.HandlerId {
|
||||
case constant.PLAYER_MGR_HANDLER_ID:
|
||||
fallthrough
|
||||
GetPlayerMgr().ProcessCMMsg(handler, hdr)
|
||||
case constant.PLAYER_HANDLER_ID:
|
||||
GetPlayerMgr().ProcessCMMsg(handler, hdr)
|
||||
case constant.TEAM_HANDLER_ID:
|
||||
|
@ -17,6 +17,15 @@ func (this *HandlerMgr) Init() {
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMPing), constant.PLAYER_MGR_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMLogin), constant.PLAYER_MGR_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMReconnect), constant.PLAYER_MGR_HANDLER_ID)
|
||||
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMLeaveTeam), constant.PLAYER_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMDisbandTeam), constant.PLAYER_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMKickOut), constant.PLAYER_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMHandoverLeader), constant.PLAYER_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMStartGame), constant.PLAYER_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMCancel), constant.PLAYER_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMSetReady), constant.PLAYER_HANDLER_ID)
|
||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMGrantInvitePermission), constant.PLAYER_HANDLER_ID)
|
||||
}
|
||||
|
||||
func (this *HandlerMgr) UnInit() {
|
||||
|
@ -285,9 +285,7 @@ func (this *team) SendUpdateNotify() {
|
||||
}
|
||||
|
||||
func (this *team) SendStateNotify() {
|
||||
notifyMsg := &cs.SMTeamStateNotify{}
|
||||
notifyMsg.State = proto.Int32(this.state)
|
||||
this.broadcastMsg(notifyMsg)
|
||||
this.broadcastMsg(this.stateNotifyMsg)
|
||||
}
|
||||
|
||||
func newTeam() *team {
|
||||
|
Loading…
x
Reference in New Issue
Block a user