data required for instance of single subtree 更多...
#include <BehaviorTreeTypes.h>
Public 成员函数 | |
| void | AddToActiveAuxNodes (UBTAuxiliaryNode *AuxNode) |
| add specified node to the active nodes list | |
| void | AddToParallelTasks (FBehaviorTreeParallelTask &&ParallelTask) |
| add new parallel task | |
| void | Cleanup (UBehaviorTreeComponent &OwnerComp, EBTMemoryClear::Type CleanupType) |
| cleanup node instances | |
| void | DeactivateNodes (FBehaviorTreeSearchData &SearchData, uint16 InstanceIndex) |
| deactivate all active aux nodes and remove their requests from SearchData | |
| void | ExecuteOnEachAuxNode (TFunctionRef< void(const UBTAuxiliaryNode &)> ExecFunc) |
| iterate on auxiliary nodes and call ExecFunc on each of them. 更多... | |
| void | ExecuteOnEachParallelTask (TFunctionRef< void(const FBehaviorTreeParallelTask &, const int32)> ExecFunc) |
| iterate on parallel tasks and call ExecFunc on each of them. 更多... | |
| TArrayView< UBTAuxiliaryNode *const > | GetActiveAuxNodes () const |
| get list of all active auxiliary nodes | |
| TArrayView< const uint8 > | GetInstanceMemory () const |
| get instance memory | |
| TArrayView< const FBehaviorTreeParallelTask > | GetParallelTasks () const |
| get list of all active parallel tasks | |
| bool | HasActiveNode (uint16 TestExecutionIndex) const |
| check if instance has active node with given execution index | |
| void | Initialize (UBehaviorTreeComponent &OwnerComp, UBTCompositeNode &Node, int32 &InstancedIndex, EBTMemoryInit::Type InitType) |
| initialize memory and create node instances | |
| bool | IsValidParallelTaskIndex (const int32 Index) const |
| indicates if the provided index is a valid parallel task index | |
| void | MarkParallelTaskAsAbortingAt (int32 TaskIndex) |
| mark parallel task at given index as pending abort | |
| void | RemoveFromActiveAuxNodes (UBTAuxiliaryNode *AuxNode) |
| remove specified node from the active nodes list | |
| void | RemoveParallelTaskAt (int32 TaskIndex) |
| remove parallel task at given index | |
| void | ResetActiveAuxNodes () |
| remove all auxiliary nodes from active nodes list | |
| void | SetInstanceMemory (const TArray< uint8 > &Memory) |
| set instance memory | |
Public 属性 | |
| TArray< UBTAuxiliaryNode * > | ActiveAuxNodes |
| active auxiliary nodes | |
| UBTNode * | ActiveNode |
| active node in template | |
| TEnumAsByte< EBTActiveNode::Type > | ActiveNodeType |
| active node type | |
| FBTInstanceDeactivation | DeactivationNotify |
| delegate sending a notify when tree instance is removed from active stack | |
| uint8 | InstanceIdIndex |
| index of identifier (BehaviorTreeComponent.KnownInstances) | |
| TArray< uint8 > | InstanceMemory |
| memory: instance | |
| TArray< FBehaviorTreeParallelTask > | ParallelTasks |
| active parallel tasks | |
| UBTCompositeNode * | RootNode |
| root node in template | |
Protected 成员函数 | |
| void | CleanupNodes (UBehaviorTreeComponent &OwnerComp, UBTCompositeNode &Node, EBTMemoryClear::Type CleanupType) |
| worker for updating all nodes | |
data required for instance of single subtree
| void FBehaviorTreeInstance::ExecuteOnEachAuxNode | ( | TFunctionRef< void(const UBTAuxiliaryNode &)> | ExecFunc | ) |
iterate on auxiliary nodes and call ExecFunc on each of them.
Nodes can not be added or removed during the iteration
| void FBehaviorTreeInstance::ExecuteOnEachParallelTask | ( | TFunctionRef< void(const FBehaviorTreeParallelTask &, const int32)> | ExecFunc | ) |
iterate on parallel tasks and call ExecFunc on each of them.
Supports removing the iterated task while processed