提交引擎优化

This commit is contained in:
duanhf2012
2020-03-13 14:48:05 +08:00
parent 3854b5f6c2
commit 686d88cabc
2 changed files with 27 additions and 5 deletions

View File

@@ -30,7 +30,9 @@ type MsgProcessor struct {
}
func (slf *MsgProcessor) InitProcessor(){
slf.mapMsg = make(map[uint16]MessageInfo)
}
func (slf *MsgProcessor) RegMessage(msgtype uint16,msg proto.Message,handle MessageHandler){
var info MessageInfo