engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
FBehaviorTreeInstance结构体 参考

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

成员函数说明

◆ ExecuteOnEachAuxNode()

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

◆ ExecuteOnEachParallelTask()

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


该结构体的文档由以下文件生成: