From 54fcbcbb6bea3f086b751d80faca1700dba28a51 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 28 May 2024 14:14:09 +0200 Subject: [PATCH] feat: added register_types --- register_types.cpp | 17 +++++++++++++++++ register_types.hpp | 6 ++++++ 2 files changed, 23 insertions(+) create mode 100644 register_types.cpp create mode 100644 register_types.hpp diff --git a/register_types.cpp b/register_types.cpp new file mode 100644 index 0000000..85b5f56 --- /dev/null +++ b/register_types.cpp @@ -0,0 +1,17 @@ +#include "register_types.hpp" +#include +#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(); + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); +} diff --git a/register_types.hpp b/register_types.hpp new file mode 100644 index 0000000..11841ff --- /dev/null +++ b/register_types.hpp @@ -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