From 76dd9fbc6206a9dbaefcf2f46ab7c19095a3e195 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 12 Nov 2025 11:27:24 +0100 Subject: [PATCH] feat: initialized template --- .gitignore | 6 +++--- justfile | 4 ++-- modules/PROJECT/register_types.h | 9 --------- modules/{PROJECT => terrain_editor}/SCsub | 0 modules/{PROJECT => terrain_editor}/config.py | 0 modules/{PROJECT => terrain_editor}/macros.h | 0 modules/{PROJECT => terrain_editor}/register_types.cpp | 4 ++-- modules/terrain_editor/register_types.h | 9 +++++++++ project/export_presets.cfg | 4 ++-- project/project.godot | 2 +- 10 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 modules/PROJECT/register_types.h rename modules/{PROJECT => terrain_editor}/SCsub (100%) rename modules/{PROJECT => terrain_editor}/config.py (100%) rename modules/{PROJECT => terrain_editor}/macros.h (100%) rename modules/{PROJECT => terrain_editor}/register_types.cpp (56%) create mode 100644 modules/terrain_editor/register_types.h diff --git a/.gitignore b/.gitignore index 3035daa0..37beae2d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,9 +11,9 @@ config.log compile_commands.json engine/.github project/.godot -build/PROJECT.pck -build/PROJECT.x86_64 -build/PROJECT.exe +build/terrain_editor.pck +build/terrain_editor.x86_64 +build/terrain_editor.exe build.zip # general-purpose cache folder (used by e.g clangd) diff --git a/justfile b/justfile index ee6db56e..50db7bb9 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,6 @@ set export -BUILD_NAME := "change_me" +BUILD_NAME := "terrain_editor" build: format # Compiling Editor @@ -37,7 +37,7 @@ release-windows: build initialize-template projectname: # Initializing Template {{projectname}} sed -i -e "s/PROJECT/{{projectname}}/g" ./modules/PROJECT/register_types.h ./modules/PROJECT/register_types.cpp ./project/project.godot ./project/export_presets.cfg .gitignore - sed -i -e "s/change_me/{{projectname}}/" ./justfile + sed -i -e "s/terrain_editor/{{projectname}}/" ./justfile mv ./modules/PROJECT ./modules/{{projectname}} # Done Initializing, you will still have to update BUILD_NAME in your justfile diff --git a/modules/PROJECT/register_types.h b/modules/PROJECT/register_types.h deleted file mode 100644 index 2a1d0257..00000000 --- a/modules/PROJECT/register_types.h +++ /dev/null @@ -1,9 +0,0 @@ -#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 diff --git a/modules/PROJECT/SCsub b/modules/terrain_editor/SCsub similarity index 100% rename from modules/PROJECT/SCsub rename to modules/terrain_editor/SCsub diff --git a/modules/PROJECT/config.py b/modules/terrain_editor/config.py similarity index 100% rename from modules/PROJECT/config.py rename to modules/terrain_editor/config.py diff --git a/modules/PROJECT/macros.h b/modules/terrain_editor/macros.h similarity index 100% rename from modules/PROJECT/macros.h rename to modules/terrain_editor/macros.h diff --git a/modules/PROJECT/register_types.cpp b/modules/terrain_editor/register_types.cpp similarity index 56% rename from modules/PROJECT/register_types.cpp rename to modules/terrain_editor/register_types.cpp index a367b16d..88ff3454 100644 --- a/modules/PROJECT/register_types.cpp +++ b/modules/terrain_editor/register_types.cpp @@ -2,13 +2,13 @@ #include "core/object/class_db.h" -void initialize_PROJECT_module(ModuleInitializationLevel p_level) { +void initialize_terrain_editor_module(ModuleInitializationLevel p_level) { if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { return; } } -void uninitialize_PROJECT_module(ModuleInitializationLevel p_level) { +void uninitialize_terrain_editor_module(ModuleInitializationLevel p_level) { if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { return; } diff --git a/modules/terrain_editor/register_types.h b/modules/terrain_editor/register_types.h new file mode 100644 index 00000000..fd85ea42 --- /dev/null +++ b/modules/terrain_editor/register_types.h @@ -0,0 +1,9 @@ +#ifndef terrain_editor_REGISTER_TYPES_H +#define terrain_editor_REGISTER_TYPES_H + +#include "modules/register_module_types.h" + +void initialize_terrain_editor_module(ModuleInitializationLevel p_level); +void uninitialize_terrain_editor_module(ModuleInitializationLevel p_level); + +#endif // !terrain_editor_REGISTER_TYPES_H diff --git a/project/export_presets.cfg b/project/export_presets.cfg index a04762ac..92761411 100644 --- a/project/export_presets.cfg +++ b/project/export_presets.cfg @@ -9,7 +9,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="../build/PROJECT.x86_64" +export_path="../build/terrain_editor.x86_64" patches=PackedStringArray() encryption_include_filters="" encryption_exclude_filters="" @@ -51,7 +51,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="../build/PROJECT.exe" +export_path="../build/terrain_editor.exe" patches=PackedStringArray() encryption_include_filters="" encryption_exclude_filters="" diff --git a/project/project.godot b/project/project.godot index bd5ab3b0..08139dad 100644 --- a/project/project.godot +++ b/project/project.godot @@ -10,6 +10,6 @@ config_version=5 [application] -config/name="PROJECT" +config/name="terrain_editor" config/features=PackedStringArray("4.4", "Forward Plus") config/icon="res://icon.svg"