Add relevancy to Behavior Tree nodes

This commit is contained in:
Wojtek Figat
2023-08-17 21:24:19 +02:00
parent 14ffd0aa08
commit 1e3e75cb99
6 changed files with 90 additions and 37 deletions

View File

@@ -29,6 +29,8 @@ class BehaviorTreeGraph : public VisjectGraph<BehaviorTreeGraphNode>
public:
// Instance of the graph root node.
BehaviorTreeRootNode* Root = nullptr;
// Total count of used nodes.
int32 NodesCount = 0;
// Total size of the nodes states memory.
int32 NodesStatesSize = 0;
@@ -36,6 +38,9 @@ public:
bool Load(ReadStream* stream, bool loadMeta) override;
void Clear() override;
bool onNodeLoaded(Node* n) override;
private:
void LoadRecursive(Node& node);
};
/// <summary>