Fix includes and build errors

This commit is contained in:
Serhii Snitsaruk 2024-03-12 21:09:28 +01:00
parent 39c4511249
commit 06ebff7518
5 changed files with 4 additions and 29 deletions

View File

@ -276,13 +276,14 @@ void BlackboardPlan::sync_with_base_plan() {
List<Pair<StringName, BBVariable>>::Element *B = base->var_list.front(); List<Pair<StringName, BBVariable>>::Element *B = base->var_list.front();
for (List<Pair<StringName, BBVariable>>::Element *E = var_list.front(); E; E = E->next()) { for (List<Pair<StringName, BBVariable>>::Element *E = var_list.front(); E; E = E->next()) {
if (E->get().first != B->get().first) { if (E->get().first != B->get().first) {
List<Pair<StringName, BBVariable>>::Element *F = E; List<Pair<StringName, BBVariable>>::Element *F = E->next();
while ((F = F->next())) { while (F) {
if (F->get().first == B->get().first) { if (F->get().first == B->get().first) {
var_list.move_before(F, E); var_list.move_before(F, E);
E = F; E = F;
break; break;
} }
F = F->next();
} }
} }
B = B->next(); B = B->next();

View File

@ -17,9 +17,6 @@
#ifdef LIMBOAI_MODULE #ifdef LIMBOAI_MODULE
#include "core/debugger/engine_debugger.h" #include "core/debugger/engine_debugger.h"
#include "core/error/error_macros.h"
#include "core/object/class_db.h"
#include "core/variant/variant.h"
#endif // LIMBOAI_MODULE #endif // LIMBOAI_MODULE
#ifdef LIMBOAI_GDEXTENSION #ifdef LIMBOAI_GDEXTENSION

View File

@ -11,16 +11,6 @@
#include "limbo_hsm.h" #include "limbo_hsm.h"
#ifdef LIMBOAI_MODULE
#include "core/config/engine.h"
#include "core/error/error_macros.h"
#include "core/object/class_db.h"
#include "core/object/object.h"
#include "core/typedefs.h"
#include "core/variant/callable.h"
#include "core/variant/variant.h"
#endif // LIMBOAI_MODULE
VARIANT_ENUM_CAST(LimboHSM::UpdateMode); VARIANT_ENUM_CAST(LimboHSM::UpdateMode);
void LimboHSM::set_active(bool p_active) { void LimboHSM::set_active(bool p_active) {

View File

@ -14,16 +14,10 @@
#include "../util/limbo_compat.h" #include "../util/limbo_compat.h"
#ifdef LIMBOAI_MODULE #ifdef LIMBOAI_MODULE
#include "core/error/error_macros.h"
#include "core/object/class_db.h"
#include "core/object/object.h"
#include "core/typedefs.h"
#include "core/variant/array.h"
#include "core/variant/callable.h"
#include "core/variant/variant.h"
#endif // LIMBOAI_MODULE #endif // LIMBOAI_MODULE
#ifdef LIMBOAI_GDEXTENSION #ifdef LIMBOAI_GDEXTENSION
#include <godot_cpp/classes/engine.hpp>
#endif #endif
void LimboState::set_blackboard_plan(const Ref<BlackboardPlan> &p_plan) { void LimboState::set_blackboard_plan(const Ref<BlackboardPlan> &p_plan) {

View File

@ -19,13 +19,6 @@
#include "../util/limbo_string_names.h" #include "../util/limbo_string_names.h"
#ifdef LIMBOAI_MODULE #ifdef LIMBOAI_MODULE
#include "core/object/gdvirtual.gen.inc"
#include "core/object/object.h"
#include "core/string/string_name.h"
#include "core/string/ustring.h"
#include "core/templates/hash_map.h"
#include "core/variant/callable.h"
#include "core/variant/variant.h"
#include "scene/main/node.h" #include "scene/main/node.h"
#endif // LIMBOAI_MODULE #endif // LIMBOAI_MODULE