Drag[en]gine Script Module DragonScript  1.23
Dragengine.BehaviorTreeSystem.BTBlockAction Class Reference

Behavior tree action using block. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTBlockAction:
Dragengine.BehaviorTreeSystem.BTAction

Public Member Functions

BTBlockAction new (Block ablock)
 Create action. More...
 
- Public Member Functions inherited from Dragengine.BehaviorTreeSystem.BTAction
BTResult runAction (BTContext context, Dictionary parameters)
 Run action. More...
 

Public Attributes

Block pBlock
 

Detailed Description

Behavior tree action using block.

Provides support to add tiny actions often just calling a BTContext method without needing to implement a full class. The used block has to take two parameter of type BTContext context and Dictionary and parameters has to return an integer value from BTAction.eReturnValues. Do not change the content of the dictionary as it is shared.

new BTBlockAction(block BTContext context, Dictionary parameters
// do something
return BTResult.running // or .success or .failure
end)

Member Function Documentation

◆ new()

BTBlockAction Dragengine.BehaviorTreeSystem.BTBlockAction.new ( Block  ablock)

Create action.

Member Data Documentation

◆ pBlock

Block Dragengine.BehaviorTreeSystem.BTBlockAction.pBlock

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