Add releasing nested nodes state when BT tree goes irrelevant

This commit is contained in:
Wojtek Figat
2023-08-23 13:43:46 +02:00
parent 3259af3368
commit 73c0758410
3 changed files with 32 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
#include "BehaviorTreeNode.h"
#include "BehaviorKnowledgeSelector.h"
#include "Engine/Core/Collections/Array.h"
#include "Engine/Core/Collections/BitArray.h"
#include "Engine/Content/AssetReference.h"
/// <summary>
@@ -24,6 +25,10 @@ public:
// [BehaviorTreeNode]
void Init(BehaviorTree* tree) override;
BehaviorUpdateResult Update(BehaviorUpdateContext context) override;
protected:
// [BehaviorTreeNode]
void InvokeReleaseState(const BehaviorUpdateContext& context) override;
};
/// <summary>