Skip to content

Class: GameServer

Methods

NameDescription
:sendSignal(sectorId,name,data)
:startSector(sectorId)

Method declarations

Method: sendSignal

lua
function GameServer:sendSignal(
    sectorId,
    name,
    data
) end

Parameters:

  • 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.

  • string - tuple of success boolean and the return value of the signal handler.

Method: startSector

lua
function GameServer:startSector(
    sectorId
) end

Parameters:

  • 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.