game

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectedGamesNum added in v0.1.4

func ConnectedGamesNum() int

func GetGameID

func GetGameID() uint16

GetGameID returns the current Game Server ID

func Run

func Run()

Run runs the game server

This is the main game server loop

Types

type GameService added in v0.1.2

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

func (*GameService) HandleCallEntityMethod added in v0.1.2

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

func (*GameService) HandleCallNilSpaces added in v0.1.3

func (gs *GameService) HandleCallNilSpaces(method string, args [][]byte)

func (*GameService) HandleCreateEntitySomewhere added in v0.1.6

func (gs *GameService) HandleCreateEntitySomewhere(entityid common.EntityID, typeName string, data map[string]interface{})

func (*GameService) HandleGateDisconnected added in v0.1.2

func (gs *GameService) HandleGateDisconnected(gateid uint16)

func (*GameService) HandleLoadEntitySomewhere added in v0.1.4

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

func (*GameService) HandleMigrateRequestAck added in v0.1.2

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

func (*GameService) HandleNotifyClientConnected added in v0.1.2

func (gs *GameService) HandleNotifyClientConnected(clientid common.ClientID, bootEid common.EntityID, gateid uint16)

func (*GameService) HandleNotifyClientDisconnected added in v0.1.2

func (gs *GameService) HandleNotifyClientDisconnected(ownerID common.EntityID, clientid common.ClientID)

func (*GameService) HandleQuerySpaceGameIDForMigrateAck added in v0.1.2

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

func (*GameService) HandleRealMigrate added in v0.1.2

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

func (*GameService) HandleSrvdisRegister added in v0.1.4

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

func (*GameService) HandleStartFreezeGameAck added in v0.1.2

func (gs *GameService) HandleStartFreezeGameAck(dispid uint16)

func (*GameService) HandleSyncPositionYawFromClient added in v0.1.2

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

func (*GameService) String added in v0.1.2

func (gs *GameService) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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