game

package
v0.0.0-...-fae5011 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGameID

func GetGameID() uint16

func Run

func Run(delegate IGameDelegate)

Types

type GameDelegate

type GameDelegate struct {
}

func (*GameDelegate) OnGameReady

func (gd *GameDelegate) OnGameReady()

type GameService

type GameService struct {
	// contains filtered or unexported fields
}

func (*GameService) HandleCallEntityMethod

func (gs *GameService) HandleCallEntityMethod(entityID common.EntityID, method string, args [][]byte, clientid common.ClientID)

func (*GameService) HandleCreateEntityAnywhere

func (gs *GameService) HandleCreateEntityAnywhere(typeName string, data map[string]interface{})

func (*GameService) HandleDeclareService

func (gs *GameService) HandleDeclareService(entityID common.EntityID, serviceName string)

func (*GameService) HandleGateDisconnected

func (gs *GameService) HandleGateDisconnected(gateid uint16)

func (*GameService) HandleLoadEntityAnywhere

func (gs *GameService) HandleLoadEntityAnywhere(typeName string, entityID common.EntityID)

func (*GameService) HandleMigrateRequestAck

func (gs *GameService) HandleMigrateRequestAck(pkt *netutil.Packet)

func (*GameService) HandleNotifyAllGamesConnected

func (gs *GameService) HandleNotifyAllGamesConnected()

func (*GameService) HandleNotifyClientConnected

func (gs *GameService) HandleNotifyClientConnected(clientid common.ClientID, gid uint16)

func (*GameService) HandleNotifyClientDisconnected

func (gs *GameService) HandleNotifyClientDisconnected(clientid common.ClientID)

func (*GameService) HandleRealMigrate

func (gs *GameService) HandleRealMigrate(pkt *netutil.Packet)

func (*GameService) HandleStartFreezeGameAck

func (gs *GameService) HandleStartFreezeGameAck()

func (*GameService) HandleUndeclareService

func (gs *GameService) HandleUndeclareService(entityID common.EntityID, serviceName string)

func (*GameService) HandleUpdatePositionYawFromClient

func (gs *GameService) HandleUpdatePositionYawFromClient(pkt *netutil.Packet)

func (*GameService) String

func (gs *GameService) String() string

type IGameDelegate

type IGameDelegate interface {
	OnGameReady()
}

Jump to

Keyboard shortcuts

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