feat: updated registered types

added CharacterData PelletProjectile ProjectilePool TunnelsGameState WeaponData
This commit is contained in:
Sara 2024-03-19 13:24:58 +01:00
parent 8af5cbc090
commit f93bb5c045

View file

@ -1,19 +1,24 @@
#include "register_types.h"
#include <gdextension_interface.h>
#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/core/defs.hpp>
#include <godot_cpp/godot.hpp>
#include "character_data.hpp"
#include "enemy.hpp"
#include "health.hpp"
#include "pellet_projectile.hpp"
#include "player_character.hpp"
#include "projectile_pool.hpp"
#include "tunnels_game_mode.hpp"
#include "tunnels_game_state.hpp"
#include "tunnels_player.hpp"
#include "weapon_data.hpp"
#include "utils/game_mode.hpp"
#include "utils/game_root.hpp"
#include "utils/game_state.hpp"
#include "utils/level.hpp"
#include "utils/player_input.hpp"
#include "utils/spawn_point.hpp"
#include "enemy.hpp"
#include "health.hpp"
#include "player_character.hpp"
#include "tunnels_game_mode.hpp"
#include "tunnels_player.hpp"
#include <gdextension_interface.h>
#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/core/defs.hpp>
#include <godot_cpp/godot.hpp>
using namespace godot;
@ -30,11 +35,16 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level)
ClassDB::register_class<PlayerInput>();
ClassDB::register_class<SpawnPoint3D>();
ClassDB::register_class<CharacterData>();
ClassDB::register_class<Enemy>();
ClassDB::register_class<Health>();
ClassDB::register_class<PelletProjectile>();
ClassDB::register_class<PlayerCharacter>();
ClassDB::register_class<ProjectilePool>();
ClassDB::register_class<TunnelsGameMode>();
ClassDB::register_class<TunnelsGameState>();
ClassDB::register_class<TunnelsPlayer>();
ClassDB::register_class<WeaponData>();
}
extern "C"