Extends
Members
-
<readonly> game :Game
-
Reference to the owner game instance
Type:
- Inherited From:
- Source:
-
<readonly> name :String
-
Name of this system
Type:
- String
- Inherited From:
- Source:
Methods
-
awake(settings)
-
Callback that will be invoked when owner game is awake.
Parameters:
Name Type Description settings
Object Settings passed to the game
- Inherited From:
- Source:
-
fixedUpdate(dt, dtSec)
-
Callback that will be invoked each fixed frame(based on Game#desiredFPS).
Parameters:
Name Type Description dt
Number Delta time in millisecond
dtSec
Number Delta time in second
- Inherited From:
- Source:
-
freeze()
-
Callback that will be invoked when owner game is freeze.
- Inherited From:
- Source:
-
onEntityRemove(ent)
-
Callback that will be invoked on each entity remove.
Parameters:
Name Type Description ent
Entity Entity instance
- Inherited From:
- Source:
-
onEntitySpawn(ent)
-
Callback that will be invoked on each entity spawn.
Parameters:
Name Type Description ent
Entity Entity instance
- Inherited From:
- Source:
-
onEntityTagChange(ent, tag)
-
Callback that will be invoked when an entity changes its tag.
Parameters:
Name Type Description ent
Entity Entity instance
tag
String New tag
- Inherited From:
- Source:
-
onPause()
-
Callback that will be invoked when owner game will pause.
- Inherited From:
- Source:
-
onResume()
-
Callback that will be invoked when owner game will resume from pause.
- Inherited From:
- Source:
-
update(dt, dtSec)
-
Callback that will be invoked each idle frame(animation frame).
Parameters:
Name Type Description dt
Number Delta time in millisecond
dtSec
Number Delta time in second
- Inherited From:
- Overrides:
- Source: