game

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGameID

func GetGameID() uint16

GetGameID returns the current Game Server ID

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

Jump to

Keyboard shortcuts

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