game

package
v0.0.0-...-833bbca Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 34 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 GetOnlineGames

func GetOnlineGames() common.Uint16Set

GetOnlineGames returns all online game IDs

func Run

func Run()

Run runs the game server

This is the main game server loop

Types

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) HandleCallNilSpaces

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

func (*GameService) HandleCreateEntitySomewhere

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

func (*GameService) HandleGateDisconnected

func (gs *GameService) HandleGateDisconnected(gateid uint16)

func (*GameService) HandleKvregRegister

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

func (*GameService) HandleLoadEntitySomewhere

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

func (*GameService) HandleMigrateRequestAck

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

func (*GameService) HandleNotifyClientConnected

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

func (*GameService) HandleNotifyClientDisconnected

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

func (*GameService) HandleQuerySpaceGameIDForMigrateAck

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

func (*GameService) HandleRealMigrate

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

func (*GameService) HandleStartFreezeGameAck

func (gs *GameService) HandleStartFreezeGameAck(dispid uint16)

func (*GameService) HandleSyncPositionYawFromClient

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

func (*GameService) String

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