This commit is contained in:
aozhiwei 2023-08-10 19:32:04 +08:00
parent b7b090b625
commit feddb3bfbd
2 changed files with 6 additions and 2 deletions

View File

@ -48,7 +48,7 @@ func (this *App_) Update() {
if ok {
handlerId := cs.GetMsgHandlerId(hdr.MsgId)
if handlerId == PLAYER_MGR_HANDLER_ID {
cs.DispatchMsg(hdr.MsgId, PlayerMgr)
cs.DispatchMsg(hdr, PlayerMgr)
}
}
next.Del()

View File

@ -1,5 +1,9 @@
package cs
import (
"q5"
)
func ParsePb(msgId int, data []byte) interface{} {
return nil
}
@ -32,6 +36,6 @@ func GetMsgHandlerId(msgId int) (int) {
return 0
}
func DispatchMsg(msgId int, msgHandler MsgHandler) {
func DispatchMsg(hdr *q5.MsgHdr, msgHandler MsgHandler) {
}