/** * bt_task.cpp * ============================================================================= * Copyright 2021-2024 Serhii Snitsaruk * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. * ============================================================================= */ #include "bt_task.h" #include "../../blackboard/blackboard.h" #include "../../util/limbo_string_names.h" #include "../../util/limbo_utility.h" #include "../behavior_tree.h" #include "bt_comment.h" #ifdef LIMBOAI_MODULE #include "core/error/error_macros.h" #include "core/io/resource.h" #include "core/object/class_db.h" #include "core/object/object.h" #include "core/object/ref_counted.h" #include "core/object/script_language.h" #include "core/string/ustring.h" #include "core/templates/hash_map.h" #include "core/variant/variant.h" #endif // LIMBOAI_MODULE #ifdef LIMBOAI_GDEXTENSION #include "godot_cpp/classes/global_constants.hpp" #include "godot_cpp/core/class_db.hpp" #include "godot_cpp/variant/dictionary.hpp" #include "godot_cpp/variant/string_name.hpp" #include "godot_cpp/variant/typed_array.hpp" #include "godot_cpp/variant/utility_functions.hpp" #include "godot_cpp/variant/variant.hpp" #include #include #endif // LIMBOAI_GDEXTENSION void BT::_bind_methods() { BIND_ENUM_CONSTANT(FRESH); BIND_ENUM_CONSTANT(RUNNING); BIND_ENUM_CONSTANT(FAILURE); BIND_ENUM_CONSTANT(SUCCESS); } String BTTask::_generate_name() { String ret; // Generate name based on script path. Ref