game

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: Apache-2.0 Imports: 30 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) HandleCreateEntityAnywhere added in v0.1.2

func (gs *GameService) HandleCreateEntityAnywhere(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, gateid uint16)

func (*GameService) HandleNotifyClientDisconnected added in v0.1.2

func (gs *GameService) HandleNotifyClientDisconnected(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

Jump to

Keyboard shortcuts

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