Class: SystemObjectEvent

SystemObjectEvent

An event that an object can react on

new SystemObjectEvent (json)

Name Type Description
json Object optional Json object describing the object event
Properties:
Name Type Description
isSystem boolean Boolean indicating if it is an event system
idEvent number ID of the event
parameters Array.<SystemParameter> All the parameters values
reactions Array.<SystemObjectReaction> List of all the reactions according to states ID

Methods

read (json)

Read the JSON associated to the object event
Name Type Description
json Object Json object describing the object event

isEqual (event)boolean

Check if this event is equal to another
Name Type Description
event SystemObjectEvent The event to compare
Returns:
Type Description
boolean

addReactions (reactions)

Add reactions to the event
Name Type Description
reactions Object The reactions to add