From 87c7c247f13cbcea1f5401abaa0ceda60dc8106b Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 19 Jan 2025 13:48:19 +0100 Subject: [PATCH] feat: added template module --- engine/modules/PROJECT/SCsub | 3 +++ engine/modules/PROJECT/register_types.cpp | 15 +++++++++++++++ engine/modules/PROJECT/register_types.h | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 engine/modules/PROJECT/SCsub create mode 100644 engine/modules/PROJECT/register_types.cpp create mode 100644 engine/modules/PROJECT/register_types.h diff --git a/engine/modules/PROJECT/SCsub b/engine/modules/PROJECT/SCsub new file mode 100644 index 0000000..2760ab7 --- /dev/null +++ b/engine/modules/PROJECT/SCsub @@ -0,0 +1,3 @@ +Import('env') + +env.add_source_files(env.modules_sources, "*.cpp") diff --git a/engine/modules/PROJECT/register_types.cpp b/engine/modules/PROJECT/register_types.cpp new file mode 100644 index 0000000..a367b16 --- /dev/null +++ b/engine/modules/PROJECT/register_types.cpp @@ -0,0 +1,15 @@ +#include "register_types.h" + +#include "core/object/class_db.h" + +void initialize_PROJECT_module(ModuleInitializationLevel p_level) { + if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { + return; + } +} + +void uninitialize_PROJECT_module(ModuleInitializationLevel p_level) { + if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { + return; + } +} diff --git a/engine/modules/PROJECT/register_types.h b/engine/modules/PROJECT/register_types.h new file mode 100644 index 0000000..2a1d025 --- /dev/null +++ b/engine/modules/PROJECT/register_types.h @@ -0,0 +1,9 @@ +#ifndef PROJECT_REGISTER_TYPES_H +#define PROJECT_REGISTER_TYPES_H + +#include "modules/register_module_types.h" + +void initialize_PROJECT_module(ModuleInitializationLevel p_level); +void uninitialize_PROJECT_module(ModuleInitializationLevel p_level); + +#endif // !PROJECT_REGISTER_TYPES_H