| 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 jsonObject 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 isSystemboolean Boolean indicating if it is an event system idEventnumber ID of the event statenumber The ID of the state parametersArray.<SystemValue> List of all the parameters Returns:
Type Description Array.<SystemObjectReaction>