From a56d8772d44fca77a25a35dc3d5069467544dc37 Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 15 Mar 2026 17:19:34 +0100 Subject: [PATCH] feat: registered get/set_status --- behaviour_node.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/behaviour_node.cpp b/behaviour_node.cpp index b55741c..f14a0d3 100644 --- a/behaviour_node.cpp +++ b/behaviour_node.cpp @@ -2,12 +2,15 @@ #include "behaviour_nodes/behaviour_tree.h" #include "core/config/engine.h" #include "core/object/class_db.h" +#include "macros.h" void BehaviourNode::_bind_methods() { BIND_ENUM_CONSTANT(Fail); BIND_ENUM_CONSTANT(Running); BIND_ENUM_CONSTANT(Success); ClassDB::bind_method(D_METHOD("get_behaviour_tree"), &self_type::get_behaviour_tree); + ClassDB::bind_method(D_METHOD("set_status", "status"), &self_type::set_status); + ClassDB::bind_method(D_METHOD("get_status"), &self_type::get_status); } void BehaviourNode::_notification(int what) {