This commit is contained in:
Serhii Snitsaruk 2022-10-20 22:00:10 +02:00
parent 172b90ded4
commit 34ef7d96ea
2 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,7 @@ void BTState::_bind_methods() {
// ClassDB::bind_method(D_METHOD("_set_blackboard_data", "p_data"), &BTState::_set_blackboard_data);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "behavior_tree", PROPERTY_HINT_RESOURCE_TYPE, "BehaviorTree"), "set_behavior_tree", "get_behavior_tree");
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "blackboard_data"), "_set_blackboard_data", "_get_blackboard_data");
// ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "blackboard_data"), "_set_blackboard_data", "_get_blackboard_data");
}
BTState::BTState() {

View File

@ -15,6 +15,7 @@
#include "bb_param/bb_float.h"
#include "bb_param/bb_int.h"
#include "bb_param/bb_int_array.h"
#include "bb_param/bb_node.h"
#include "bb_param/bb_param.h"
#include "bb_param/bb_plane.h"
#include "bb_param/bb_quat.h"
@ -121,7 +122,8 @@ void register_limboai_types() {
ClassDB::register_class<BTCondition>();
ClassDB::register_class<BBParam>();
// ClassDB::register_class<BBParam>();
ClassDB::register_virtual_class<BBParam>();
ClassDB::register_class<BBInt>();
ClassDB::register_class<BBBool>();
ClassDB::register_class<BBFloat>();
@ -136,6 +138,7 @@ void register_limboai_types() {
ClassDB::register_class<BBBasis>();
ClassDB::register_class<BBTransform>();
ClassDB::register_class<BBColor>();
ClassDB::register_class<BBNode>();
ClassDB::register_class<BBDictionary>();
ClassDB::register_class<BBArray>();
ClassDB::register_class<BBByteArray>();