root

package
v0.0.0-...-eba1a7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 15 Imported by: 0

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 (gs *GameSock) GetPassSecond() int64

func (*GameSock) GetSockState

func (gs *GameSock) GetSockState() imodule.SockState

func (*GameSock) GetSockStateDetail

func (gs *GameSock) GetSockStateDetail() imodule.ISockStateDetail

func (*GameSock) Running

func (gs *GameSock) Running() bool

func (*GameSock) SockRun

func (gs *GameSock) SockRun()

func (*GameSock) SockStop

func (gs *GameSock) SockStop()

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL