Drag[en]gine Script Module DragonScript
1.21
|
Table of trigger targets. More...
Public Member Functions | |
void | add (TSTriggerTarget target) |
Add target. More... | |
void | dispose () |
Dispose of trigger table. More... | |
TSTriggerTarget | getNamed (StringID name) |
Named target or null if absent. More... | |
TSTriggerTarget | getOrAddNamed (StringID name) |
Named target adding it if absent. More... | |
bool | hasNamed (StringID name) |
Named target is present. More... | |
TSTriggerTable | new () |
Create trigger table. More... | |
void | readFromFile (FileReader reader) |
Read trigger table from file. More... | |
void | removeAll () |
Dispose of all trigger targets. More... | |
void | removeTarget (TSTriggerTarget target) |
Remove target. More... | |
void | writeToFile (FileWriter writer) |
Write trigger table to file. More... | |
Public Attributes | |
Dictionary | pTargets |
Table of trigger targets.
Triggers add named targets to the table. Each target is a boolean value. Triggers can set or reset the target. Whenever the state of the target changes all listeners are notified. Elements using a trigger expression add themselves to all the targets they use in the trigger expression.
void Dragengine.TriggerSystem.TSTriggerTable.add | ( | TSTriggerTarget | target | ) |
Add target.
EInvalidParam | Named target is present. |
void Dragengine.TriggerSystem.TSTriggerTable.dispose | ( | ) |
Dispose of trigger table.
TSTriggerTarget Dragengine.TriggerSystem.TSTriggerTable.getNamed | ( | StringID | name | ) |
Named target or null if absent.
TSTriggerTarget Dragengine.TriggerSystem.TSTriggerTable.getOrAddNamed | ( | StringID | name | ) |
Named target adding it if absent.
bool Dragengine.TriggerSystem.TSTriggerTable.hasNamed | ( | StringID | name | ) |
Named target is present.
TSTriggerTable Dragengine.TriggerSystem.TSTriggerTable.new | ( | ) |
Create trigger table.
void Dragengine.TriggerSystem.TSTriggerTable.readFromFile | ( | FileReader | reader | ) |
Read trigger table from file.
void Dragengine.TriggerSystem.TSTriggerTable.removeAll | ( | ) |
Dispose of all trigger targets.
void Dragengine.TriggerSystem.TSTriggerTable.removeTarget | ( | TSTriggerTarget | target | ) |
Remove target.
void Dragengine.TriggerSystem.TSTriggerTable.writeToFile | ( | FileWriter | writer | ) |
Write trigger table to file.
Dictionary Dragengine.TriggerSystem.TSTriggerTable.pTargets |