#pragma once #include "scene/main/node.h" class BehaviourTree : public Node { GDCLASS(BehaviourTree, Node); static void _bind_methods(); void process(); protected: void _notification(int what); public: bool execute_next(); private: class BehaviourNode *current{ nullptr }; class BehaviourNode *root{ nullptr }; };