Drag[en]gine Script Module DragonScript
1.23
|
Trigger expression. More...
Public Member Functions | |
bool | containsTarget (TSTriggerTarget target) |
Expression contains target. More... | |
void | dispose () |
Dispose of trigger expression. More... | |
bool | evaluate () |
Evaluate expression if not disabled. More... | |
bool | getEnabled () |
Expression is enabled. More... | |
bool | getResult () |
Result. More... | |
TSTriggerExpressionComponent | getRootComponent () |
Root expression component or null if not set. More... | |
bool | isEmpty () |
Expression is empty hence root component is null. More... | |
bool | isNotEmpty () |
Expression is not empty hence root component is not null. More... | |
void | linkTriggerTargets (TSTriggerTable triggerTable, TSTriggerListener listener) |
Link trigger targets using trigger table. More... | |
TSTriggerExpression | new () |
Create trigger expression. More... | |
void | setEnabled (bool enabled) |
Set expression is enabled. More... | |
void | setResult (bool result) |
Set result. More... | |
void | setRootComponent (TSTriggerExpressionComponent component) |
Set root expression component or null if not set. More... | |
Trigger expression.
bool Dragengine.TriggerSystem.TSTriggerExpression.containsTarget | ( | TSTriggerTarget | target | ) |
Expression contains target.
void Dragengine.TriggerSystem.TSTriggerExpression.dispose | ( | ) |
Dispose of trigger expression.
bool Dragengine.TriggerSystem.TSTriggerExpression.evaluate | ( | ) |
Evaluate expression if not disabled.
Stores result for later use.
bool Dragengine.TriggerSystem.TSTriggerExpression.getEnabled | ( | ) |
Expression is enabled.
bool Dragengine.TriggerSystem.TSTriggerExpression.getResult | ( | ) |
Result.
TSTriggerExpressionComponent Dragengine.TriggerSystem.TSTriggerExpression.getRootComponent | ( | ) |
Root expression component or null if not set.
bool Dragengine.TriggerSystem.TSTriggerExpression.isEmpty | ( | ) |
Expression is empty hence root component is null.
bool Dragengine.TriggerSystem.TSTriggerExpression.isNotEmpty | ( | ) |
Expression is not empty hence root component is not null.
void Dragengine.TriggerSystem.TSTriggerExpression.linkTriggerTargets | ( | TSTriggerTable | triggerTable, |
TSTriggerListener | listener | ||
) |
Link trigger targets using trigger table.
If trigger table is null all trigger targets are unlinked. The listener is registered for all targets. A previously existing listener is removed first. After linking the expression is evaluated.
TSTriggerExpression Dragengine.TriggerSystem.TSTriggerExpression.new | ( | ) |
Create trigger expression.
void Dragengine.TriggerSystem.TSTriggerExpression.setEnabled | ( | bool | enabled | ) |
Set expression is enabled.
void Dragengine.TriggerSystem.TSTriggerExpression.setResult | ( | bool | result | ) |
Set result.
void Dragengine.TriggerSystem.TSTriggerExpression.setRootComponent | ( | TSTriggerExpressionComponent | component | ) |
Set root expression component or null if not set.