Click or drag to resize
IAgentData Interface
Agent data which is passed to the deciders and behaviors and contains data to make the behavior tree execution work. This is also the place to put application specific data (like a reference to the in-game actor).

Namespace: Slash.AI.BehaviorTrees.Interfaces
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
public interface IAgentData

The IAgentData type exposes the following members.

Properties
  NameDescription
Public propertyBlackboard
Blackboard to exchange data between behaviors.
Public propertyCurrentDeciderLevel
Current decider level. Incremented/Decremented while the behavior tree is walked through. Indicates how deep in the tree (on which level) the execution currently is. It's just an internal information, so don't change it from the outside.
Public propertyCurrentTaskData
Task-specific data. Will always return/set the task data of the current decider level.
Public propertyExecutionStatus
Behavior tree execution status.
Public propertyLogEnabled
Indicates if this behavior should log events. If not set the behaviors/deciders should only log warnings and errors to the logger.
Top
Methods
  NameDescription
Public methodGetTaskDataT
Tries to cast the current task data to the specified type and returns it. Throws an exception if there is no current task data or if it couldn't be casted.
Public methodPostUpdate
Called after behavior tree was updated.
Public methodPreUpdate
Called before behavior tree is updated.
Top
Events
  NameDescription
Public eventOnActiveTasksChanged
Called when the active tasks of the agent changed.
Top
See Also