1
This commit is contained in:
parent
d5d884b191
commit
c9051aab67
@ -27,13 +27,13 @@ func (this *App) Init() {
|
|||||||
this.msgList.Init(nil)
|
this.msgList.Init(nil)
|
||||||
this.workList.Init(nil)
|
this.workList.Init(nil)
|
||||||
f5.LoadMetaTable(mt.Table)
|
f5.LoadMetaTable(mt.Table)
|
||||||
HandlerMgr.Init()
|
handlerMgr.Init()
|
||||||
wspListener.Init()
|
wspListener.Init()
|
||||||
go this.goReportServerState()
|
go this.goReportServerState()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *App) UnInit() {
|
func (this *App) UnInit() {
|
||||||
HandlerMgr.UnInit()
|
handlerMgr.UnInit()
|
||||||
wspListener.UnInit()
|
wspListener.UnInit()
|
||||||
this.App_.UnInit()
|
this.App_.UnInit()
|
||||||
}
|
}
|
||||||
|
@ -4,15 +4,15 @@ import (
|
|||||||
"cs"
|
"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__CMPing), PLAYER_MGR_HANDLER_ID)
|
||||||
cs.RegHandlerId(int(cs.CMMessageIdE__CMLogin), PLAYER_MGR_HANDLER_ID)
|
cs.RegHandlerId(int(cs.CMMessageIdE__CMLogin), PLAYER_MGR_HANDLER_ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *HandlerMgr_) UnInit() {
|
func (this *HandlerMgr) UnInit() {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user