Add GetDebugInfo to BT nodes for debugging

This commit is contained in:
Wojtek Figat
2023-09-19 20:57:19 +02:00
parent f845344d03
commit 336fe46e03
12 changed files with 225 additions and 20 deletions

View File

@@ -122,6 +122,9 @@ public:
int32 GetStateSize() const override;
void InitState(const BehaviorUpdateContext& context) override;
BehaviorUpdateResult Update(const BehaviorUpdateContext& context) override;
#if USE_EDITOR
String GetDebugInfo(const BehaviorUpdateContext& context) const override;
#endif
private:
struct State
@@ -233,6 +236,9 @@ public:
void InitState(const BehaviorUpdateContext& context) override;
void ReleaseState(const BehaviorUpdateContext& context) override;
BehaviorUpdateResult Update(const BehaviorUpdateContext& context) override;
#if USE_EDITOR
String GetDebugInfo(const BehaviorUpdateContext& context) const override;
#endif
protected:
struct State