This commit is contained in:
aozhiwei 2023-08-12 16:01:02 +08:00
parent d5d884b191
commit c9051aab67
2 changed files with 6 additions and 6 deletions

View File

@ -27,13 +27,13 @@ func (this *App) Init() {
this.msgList.Init(nil)
this.workList.Init(nil)
f5.LoadMetaTable(mt.Table)
HandlerMgr.Init()
handlerMgr.Init()
wspListener.Init()
go this.goReportServerState()
}
func (this *App) UnInit() {
HandlerMgr.UnInit()
handlerMgr.UnInit()
wspListener.UnInit()
this.App_.UnInit()
}

View File

@ -4,15 +4,15 @@ import (
"cs"
)
type HandlerMgr_ struct {
type HandlerMgr struct {
}
var HandlerMgr = new (HandlerMgr_)
var handlerMgr = new (HandlerMgr)
func (this *HandlerMgr_) Init() {
func (this *HandlerMgr) Init() {
cs.RegHandlerId(int(cs.CMMessageIdE__CMPing), PLAYER_MGR_HANDLER_ID)
cs.RegHandlerId(int(cs.CMMessageIdE__CMLogin), PLAYER_MGR_HANDLER_ID)
}
func (this *HandlerMgr_) UnInit() {
func (this *HandlerMgr) UnInit() {
}