feat: added register_types
parent
7bdb5e70eb
commit
54fcbcbb6b
|
@ -0,0 +1,17 @@
|
|||
#include "register_types.hpp"
|
||||
#include <godot_cpp/core/class_db.hpp>
|
||||
#include "game_root.hpp"
|
||||
#include "game_mode.hpp"
|
||||
#include "game_state.hpp"
|
||||
#include "level.hpp"
|
||||
|
||||
using namespace godot;
|
||||
|
||||
void godot_cpp_utils_register_types() {
|
||||
ClassDB::register_class<GameRoot3D>();
|
||||
ClassDB::register_class<GameMode>();
|
||||
ClassDB::register_class<GameState>();
|
||||
ClassDB::register_class<Level3D>();
|
||||
ClassDB::register_class<SpawnPoint3D>();
|
||||
ClassDB::register_class<PlayerInput>();
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef UTILS_REGISTER_TYPES_HPP
|
||||
#define UTILS_REGISTER_TYPES_HPP
|
||||
|
||||
void godot_cpp_utils_register_types();
|
||||
|
||||
#endif // !UTILS_REGISTER_TYPES_HPP
|
Loading…
Reference in New Issue