Drag[en]gine Script Module DragonScript
1.23
|
Condition behavior tree action. More...
Public Member Functions | |
bool | evaluate (BTContext context, Dictionary parameters) |
Evaluate condition. More... | |
BTConditionAction | new () |
Create action. More... | |
Public Member Functions inherited from Dragengine.BehaviorTreeSystem.BTAction | |
BTResult | runAction (BTContext context, Dictionary parameters) |
Run action. More... | |
Condition behavior tree action.
Convenience implementation of an action returning BTResult.success if the evaluate() method returns true otherwise BTResult.failure is returned.
bool Dragengine.BehaviorTreeSystem.BTConditionAction.evaluate | ( | BTContext | context, |
Dictionary | parameters | ||
) |
Evaluate condition.
parameters | Dictionary with parameters of type String key and String value. Do not change the content of the dictionary as it is shared. |
BTConditionAction Dragengine.BehaviorTreeSystem.BTConditionAction.new | ( | ) |
Create action.