From d128bdf8f63e107355c981d8298880835e45b94c Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Wed, 31 Aug 2022 17:50:49 +0200 Subject: [PATCH] Bind signal - BTPlayer --- bt/bt_player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bt/bt_player.cpp b/bt/bt_player.cpp index 971f891..7350dd5 100644 --- a/bt/bt_player.cpp +++ b/bt/bt_player.cpp @@ -8,6 +8,7 @@ #include "core/engine.h" #include "core/io/resource_loader.h" #include "core/object.h" +#include "core/variant.h" #include VARIANT_ENUM_CAST(BTPlayer::UpdateMode); @@ -108,4 +109,6 @@ void BTPlayer::_bind_methods() { BIND_ENUM_CONSTANT(IDLE); BIND_ENUM_CONSTANT(PHYSICS); BIND_ENUM_CONSTANT(MANUAL); + + ADD_SIGNAL(MethodInfo("behavior_tree_finished", PropertyInfo(Variant::INT, "p_status"))); } \ No newline at end of file