game2006go/server/imserver/cs/cs.generate.go
aozhiwei feddb3bfbd 1
2023-08-10 19:32:04 +08:00

42 lines
585 B
Go

package cs
import (
"q5"
)
func ParsePb(msgId int, data []byte) interface{} {
return nil
}
type MsgHandler interface {
CMPing(*CMPing)
CMLogin(*CMLogin)
CMReconnect(*CMReconnect)
}
type MsgHandlerImpl struct {
}
type NetMsgHandler struct {
MsgId int
HandlerId int
cb func(MsgHandler)
}
func (this *MsgHandlerImpl) CMPing(msg *CMPing) {
}
func (this *MsgHandlerImpl) CMLogin(msg *CMLogin) {
}
func (this *MsgHandlerImpl) CMReconnect(msg *CMReconnect) {
}
func GetMsgHandlerId(msgId int) (int) {
return 0
}
func DispatchMsg(hdr *q5.MsgHdr, msgHandler MsgHandler) {
}