Constructor
(protected) new System()
- Description:
- Source:
Example
class SystemExample extends System {}
Members
(protected) $initiated :boolean
- Description:
- Stores the initiated status.
- Source:
Stores the initiated status.
Type:
Methods
initiate()
- Description:
- 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:
- 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). |