Documentation ¶
Overview ¶
Created by xuzhuoxi on 2019-02-18. @author xuzhuoxi
Created by xuzhuoxi on 2019-02-21. @author xuzhuoxi
Created by xuzhuoxi on 2019-03-26. @author xuzhuoxi
Created by xuzhuoxi on 2019-02-19. @author xuzhuoxi
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGameSingleCase ¶
func NewGameSingleCase() ifc.IGameSingleCase
func NewSnailGameExtensionManager ¶
func NewSnailGameExtensionManager(SockStateDetail *imodule.SockStateDetail) protox.IExtensionManager
Types ¶
type GameServer ¶
type GameServer struct { eventx.EventDispatcher SingleCase ifc.IGameSingleCase GameSocks []*GameSock // contains filtered or unexported fields }
func NewGameServer ¶
func NewGameServer(config config.ObjectConf, singleCase ifc.IGameSingleCase) *GameServer
func (*GameServer) InitServer ¶
func (s *GameServer) InitServer()
func (*GameServer) StartServer ¶
func (s *GameServer) StartServer()
func (*GameServer) StopServer ¶
func (s *GameServer) StopServer()
type GameSingleCase ¶
type GameSingleCase struct {
// contains filtered or unexported fields
}
func (*GameSingleCase) GetLogger ¶
func (s *GameSingleCase) GetLogger() logx.ILogger
func (*GameSingleCase) Init ¶
func (s *GameSingleCase) Init()
func (*GameSingleCase) SetLogger ¶
func (s *GameSingleCase) SetLogger(logger logx.ILogger)
type GameSock ¶
type GameSock struct { Conf config.SockConf Server tcpx.ITCPServer Container ifc.IGameExtensionContainer ExtensionMgr protox.IExtensionManager SockStateDetail *imodule.SockStateDetail }
func NewGameSock ¶
func NewGameSock(cfg config.SockConf, single ifc.IGameSingleCase) *GameSock
func (*GameSock) GetPassSecond ¶
func (*GameSock) GetSockState ¶
func (*GameSock) GetSockStateDetail ¶
func (gs *GameSock) GetSockStateDetail() imodule.ISockStateDetail
type GameStatus ¶
type GameStatus struct {
// contains filtered or unexported fields
}
func NewGameStatus ¶
func NewGameStatus(cfg config.ObjectConf, singleCase ifc.IGameSingleCase, server *GameServer) *GameStatus
func (*GameStatus) StartNotify ¶
func (s *GameStatus) StartNotify()
func (*GameStatus) StopNotify ¶
func (s *GameStatus) StopNotify()
type ModuleGame ¶
type ModuleGame struct { imodule.ModuleBase // contains filtered or unexported fields }
func (*ModuleGame) Destroy ¶
func (m *ModuleGame) Destroy()
func (*ModuleGame) Init ¶
func (m *ModuleGame) Init()
func (*ModuleGame) OnDestroy ¶
func (m *ModuleGame) OnDestroy()
func (*ModuleGame) Run ¶
func (m *ModuleGame) Run()
func (*ModuleGame) Save ¶
func (m *ModuleGame) Save()
type SnailGameExtensionManager ¶
type SnailGameExtensionManager struct { protox.ExtensionManager SockStateDetail *imodule.SockStateDetail }
func (*SnailGameExtensionManager) StartManager ¶
func (m *SnailGameExtensionManager) StartManager()
func (*SnailGameExtensionManager) StopManager ¶
func (m *SnailGameExtensionManager) StopManager()
Click to show internal directories.
Click to hide internal directories.