Class StateCondition
Hierarchy
- Condition
- StateCondition
Index
Constructors
constructor
Creates a new StateCondition
Parameters
actionManager: ActionManager
manager for the action the condition applies to
target: any
of the condition
value: string
to compare with target state
Returns StateCondition
Properties
valueSearch playground for value
Value to compare with target state
Methods
is ValidSearch playground for isValid
Gets a boolean indicating if the current condition is met
Returns boolean
the validity of the state
serializeSearch playground for serialize
Serialize the StateCondition into a JSON compatible object
Returns any
serialization object
Defines a state condition as an extension of Condition