Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameConfigModel ¶
GameConfigModel 游戏服务器的配置
type GameServiceBase ¶
type GameServiceBase struct {
ServiceStopHander func() //当服务器被关掉的时候,先调用的方法
// contains filtered or unexported fields
}
GameServiceBase 游戏模块管理
func NewGameService ¶
func NewGameService(conf *GameConfigModel) *GameServiceBase
NewGameService 生成一个新的游戏服务器
func (*GameServiceBase) AddModule ¶
func (gs *GameServiceBase) AddModule(md module.IModule)
AddModule 给这个管理器,加新的模块
func (*GameServiceBase) GetIsRun ¶
func (gs *GameServiceBase) GetIsRun() bool
GetIsRun 我们游戏是不是还在运行着,如果为false表示我们服务器正在关闭中
Click to show internal directories.
Click to hide internal directories.