package base import ( "mongo.games.com/game/common" ) var ServerStateMgr = &ServerStateManager{ State: common.GameSessStateOn, } type ServerStateManager struct { State common.GameSessState } func (this *ServerStateManager) Init() { this.State = common.GameSessStateOn } func (this *ServerStateManager) SetState(state common.GameSessState) { this.State = state } func (this *ServerStateManager) GetState() common.GameSessState { return this.State }