Name | Type | Description |
---|---|---|
json |
Object | optional Json object describing the object |
Properties:
Name | Type | Description |
---|---|---|
id |
number | The ID of the object |
name |
string | The name of the object |
eventFrame |
boolean | Indicated if it only execute one reaction per frame |
states |
Array.<SystemObjectState> | List of all the possible states of the object |
properties |
Array.<SystemProperty> | List of all properties of the object |
events |
Array.<SystemObjectEvent> | List of all the event that the object can react on |
timeEvents |
Array.<SystemEvent> | The time events list |
Methods
-
Read the JSON associated to the object
Name Type Description json
Object Json object describing the object -
getTimeEvents ()Array.<SystemEvent>
-
Get all the time events
Returns:
Type Description Array.<SystemEvent> -
getReactions (isSystem, idEvent, state, parameters)Array.<SystemObjectReaction>
-
Get the reactions corresponding to a given event and parameters
Name Type Description isSystem
boolean Boolean indicating if it is an event system idEvent
number ID of the event state
number The ID of the state parameters
Array.<SystemValue> List of all the parameters Returns:
Type Description Array.<SystemObjectReaction>