Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(delegate IGameDelegate)
Run runs the game server
This is the main game server loop
Types ¶
type GameDelegate ¶
type GameDelegate struct { }
GameDelegate is the default IGameDelegate implementation
func (*GameDelegate) OnGameReady ¶
func (gd *GameDelegate) OnGameReady()
OnGameReady is called when game is ready
type IGameDelegate ¶
type IGameDelegate interface {
OnGameReady()
}
IGameDelegate defines interfaces for handling game server events
Click to show internal directories.
Click to hide internal directories.