This commit is contained in:
aozhiwei 2024-09-20 13:51:39 +08:00
parent 94d831eefe
commit cc94e4a81a
5 changed files with 37 additions and 0 deletions

View File

@ -187,6 +187,9 @@ type PlayerMgr interface {
type MatchMgr interface {
}
type HistoryMgr interface {
}
type WspListener interface {
ProcessSSMMsg(*ss.SsNetMsgHandler, *f5.MsgHdr)
SendProxyMsg(net.Conn, uint16, proto.Message)

View File

@ -38,5 +38,6 @@ const (
PLAYER_MGR_MODULE_IDX
TEAM_MGR_MODULE_IDX
MATCH_MGR_MODULE_IDX
HISTORY_MGR_MODULE_IDX
MAX_MODULE_IDX
)

View File

@ -13,6 +13,7 @@ var initOrders = []int32 {
constant.PLAYER_MGR_MODULE_IDX,
constant.TEAM_MGR_MODULE_IDX,
constant.MATCH_MGR_MODULE_IDX,
constant.HISTORY_MGR_MODULE_IDX,
constant.WSPLISTENER_MODULE_IDX,
}
@ -20,6 +21,7 @@ var app common.App
var playerMgr common.PlayerMgr
var teamMgr common.TeamMgr
var matchMgr common.MatchMgr
var historyMgr common.HistoryMgr
var wspListener common.WspListener
func GetPlayerMgr() common.PlayerMgr {
@ -62,6 +64,10 @@ func RegModule(idx int32, m q5.Module) {
{
teamMgr = m.(common.TeamMgr)
}
case constant.HISTORY_MGR_MODULE_IDX:
{
historyMgr = m.(common.HistoryMgr)
}
case constant.MATCH_MGR_MODULE_IDX:
{
matchMgr = m.(common.MatchMgr)

View File

@ -0,0 +1,12 @@
package team
import (
"main/constant"
"main/global"
)
var _historyMgr = new(historyMgr)
func init() {
global.RegModule(constant.HISTORY_MGR_MODULE_IDX, _historyMgr)
}

View File

@ -0,0 +1,15 @@
package history
import (
)
type historyMgr struct {
}
func (this *historyMgr) Init() {
}
func (this *historyMgr) UnInit() {
}