System

System

Abstract systems.

Constructor

(protected) new System()

Description:
  • Creates a new system.
Source:
Example
class SystemExample extends System {}

Members

(protected) $initiated :boolean

Description:
  • Stores the initiated status.
Source:
Stores the initiated status.
Type:
  • boolean

Methods

initiate()

Description:
  • Initiates the system.
Source:

onInitiate()

Description:
  • Called when the system is being initiated.
Source:

onTerminate() → {void|Promise.<void>}

Description:
  • Called when the system is being terminated.
Source:
Returns:
Type
void | Promise.<void>

onTick($parameters)

Description:
  • Called when the system is being updated by one tick update.
Source:
Parameters:
Name Type Description
$parameters Object The given parameters.
$parameters.$stage Stage The stage on which to execute the system.
$parameters.$timetick number The tick duration (in ms).

terminate()

Description:
  • Terminates the system.
Source:

tick($parameters)

Description:
  • Updates the system by one tick update.
Source:
Parameters:
Name Type Description
$parameters Object The given parameters.
$parameters.$stage Stage The stage on which to execute the system.
$parameters.$timetick number The tick duration (in ms).