Class: GameServer
Methods
| Name | Description |
|---|---|
:sendSignal(sectorId,name,data) | |
:startSector(sectorId) |
Method declarations
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.string- 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.
