Drag[en]gine Script Module DragonScript 1.24
Loading...
Searching...
No Matches
Dragengine.BehaviorTreeSystem.BTAction Interface Reference

Behavior tree action interface. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTAction:
Dragengine.BehaviorTreeSystem.BTActionParameterTable Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionTrigger Dragengine.BehaviorTreeSystem.BTBlockAction Dragengine.BehaviorTreeSystem.BTConditionAction

Public Member Functions

BTResult runAction (BTContext context, Dictionary parameters)
 Run action.
 

Detailed Description

Behavior tree action interface.

Actions should not store any state since behavior trees can be reused across different game elements using different BTContext. Always store required states in BTContext.

Member Function Documentation

◆ runAction()

BTResult Dragengine.BehaviorTreeSystem.BTAction.runAction ( BTContext  context,
Dictionary  parameters 
)

Run action.

Parameters
parametersDictionary with parameters of type String key and String value. Do not change the content of the dictionary as it is shared.

Implemented in Dragengine.BehaviorTreeSystem.BTActionParameterTable, Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent, and Dragengine.BehaviorTreeSystem.BTActionTrigger.


The documentation for this interface was generated from the following file: