goworld: github.com/xiaonanln/goworld/components/game Index | Files

package game

import "github.com/xiaonanln/goworld/components/game"

Index

Package Files

GameService.go game.go game_delegate.go

func GetGameID Uses

func GetGameID() uint16

GetGameID returns the current Game Server ID

func Run Uses

func Run(delegate IGameDelegate)

Run runs the game server

This is the main game server loop

type GameDelegate Uses

type GameDelegate struct {
}

GameDelegate is the default IGameDelegate implementation

func (*GameDelegate) OnGameReady Uses

func (gd *GameDelegate) OnGameReady()

OnGameReady is called when game is ready

type IGameDelegate Uses

type IGameDelegate interface {
    OnGameReady()
}

IGameDelegate defines interfaces for handling game server events

Package game imports 27 packages (graph) and is imported by 1 packages. Updated 2017-11-18. Refresh now. Tools for package owners.