feat: registering classes

This commit is contained in:
Sara 2024-05-31 16:07:19 +02:00
parent 2da424f934
commit 092ea840dc

View file

@ -1,4 +1,11 @@
#include "register_types.h" #include "register_types.h"
#include "goap/action.hpp"
#include "goap/action_db.hpp"
#include "goap/actor_world_state.hpp"
#include "goap/planner.hpp"
#include "rts_game_mode.hpp"
#include "rts_player.hpp"
#include "unit.hpp"
#include "utils/register_types.hpp" #include "utils/register_types.hpp"
#include <gdextension_interface.h> #include <gdextension_interface.h>
#include <godot_cpp/core/class_db.hpp> #include <godot_cpp/core/class_db.hpp>
@ -13,6 +20,12 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level)
return; return;
} }
utils::godot_cpp_utils_register_types(); utils::godot_cpp_utils_register_types();
ClassDB::register_class<RTSPlayer>();
ClassDB::register_class<Unit>();
ClassDB::register_class<RTSGameMode>();
ClassDB::register_class<goap::ActorWorldState>();
ClassDB::register_class<goap::Planner>();
goap::ActionDB::register_action<TestAction>();
} }
extern "C" extern "C"