| Name | Type | Default | Description |
|---|---|---|---|
loading |
boolean | true | optional Indicate if the scene should load async stuff |
Properties:
| Name | Type | Description |
|---|---|---|
reactionInterpreters |
Array.<ReactionInterpreter> | The reaction interpreters for parallel reactions |
parallelCommands |
Array.<EventCommand> | Commands that are still running without blocking any other command |
loading |
boolean | Indicate if the scene is loading |
Methods
-
Load async stuff
-
Update all the reactions interpreters
-
Update all the parallel commands
-
Add a reaction in the interpreter list
Name Type Description senderMapObject The sender of this reaction reactionSystemReaction The reaction to add objectMapObject The object reacting statenumber The state ID parametersArray.<SystemParameter> All the parameters coming with this reaction eventArray.<number> The time events values movingboolean Indicate if command is a moving one -
Update the scene
-
Handle scene key pressed
Name Type Description keynumber The key ID -
Handle scene key released
Name Type Description keynumber The key ID -
Handle scene pressed repeat key
Name Type Description keynumber The key ID Returns:
Type Description boolean -
Handle scene pressed and repeat key
Name Type Description keynumber The key ID Returns:
Type Description boolean -
Draw the 3D scene
-
Draw the HUD scene
-
Close the scene