Class: SystemObjectReaction

SystemObjectReaction

A reaction to an event

new SystemObjectReaction (json)

Name Type Description
json Object optional Json object describing the object reaction
Properties:
Name Type Argument Default Description
labels Array.<string> <optional>
[] List of all labels
idEvent number The event ID
blockingHero boolean Indicate if this reaction is blocking the hero
commands Tree All the commands

Methods

read (json)

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

readChildrenJSON (jsonCommands, commands)

Read the JSON children associated to the object reaction
Name Type Description
jsonCommands Object Json object describing the object
commands Tree All the commands (final result)

getFirstCommand ()Node

Get the first node command of the reaction
Returns:
Type Description
Node