Class: GameServer
Methods
| Name | Description |
|---|---|
:movePlayerToShip(playerId,shipId) | |
:sendSignal(sectorId,name,data) | |
:startSector(sectorId) |
Fields
| Name | Type | Description |
|---|---|---|
functions | GameServerFunctions |
Method declarations
Method: movePlayerToShip
lua
function GameServer:movePlayerToShip(
playerId,
shipId
) endParameters:
- playerId (
integer) - shipId (
any)
Method: sendSignal
lua
function GameServer:sendSignal(
sectorId,
name,
data
) endParameters:
- sectorId (
integer) - The ID of the sector - name (
string) - The signal name to trigger - data (
any) - The payload to send to the signal handler
Returns:
boolean- tuple of success boolean and the return value of the signal handler.any- tuple of success boolean and the return value of the signal handler.
Method: startSector
lua
function GameServer:startSector(
sectorId
) endParameters:
- sectorId (
integer)
Returns:
boolean- tuple of success boolean and nil or string if an error occured.string- tuple of success boolean and nil or string if an error occured.
Field declarations
Field: functions
Type: GameServerFunctions
