From 37b3a63ae609b76e7a228d20aaa149dd11fdeb7b Mon Sep 17 00:00:00 2001 From: Sara Date: Mon, 23 Jun 2025 19:48:13 +0200 Subject: [PATCH] feat: initialized template --- .gitignore | 12 ++++++-- justfile | 2 +- modules/PROJECT/register_types.cpp | 15 ---------- modules/PROJECT/register_types.h | 9 ------ modules/{PROJECT => authority}/SCsub | 0 .../__pycache__/config.cpython-313.pyc | Bin 0 -> 390 bytes modules/{PROJECT => authority}/config.py | 0 modules/{PROJECT => authority}/macros.h | 0 modules/authority/register_types.cpp | 26 ++++++++++++++++++ modules/authority/register_types.h | 9 ++++++ project/export_presets.cfg | 4 +-- project/project.godot | 2 +- 12 files changed, 48 insertions(+), 31 deletions(-) delete mode 100644 modules/PROJECT/register_types.cpp delete mode 100644 modules/PROJECT/register_types.h rename modules/{PROJECT => authority}/SCsub (100%) create mode 100644 modules/authority/__pycache__/config.cpython-313.pyc rename modules/{PROJECT => authority}/config.py (100%) rename modules/{PROJECT => authority}/macros.h (100%) create mode 100644 modules/authority/register_types.cpp create mode 100644 modules/authority/register_types.h diff --git a/.gitignore b/.gitignore index b8680775..3f82628a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,10 +5,16 @@ # When configure fails, SCons outputs these config.log .sconf_temp +.config + +# build artefacts +.cache/ +*.o +compile_commands.json engine/.github project/.godot -build/PROJECT.pck -build/PROJECT.x86_64 -build/PROJECT.exe +build/authority.pck +build/authority.x86_64 +build/authority.exe build.zip diff --git a/justfile b/justfile index ad0c5d09..48c61a88 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,6 @@ set export -BUILD_NAME := "change_me" +BUILD_NAME := "authority" build: format # Compiling Editor diff --git a/modules/PROJECT/register_types.cpp b/modules/PROJECT/register_types.cpp deleted file mode 100644 index a367b16d..00000000 --- a/modules/PROJECT/register_types.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#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/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/authority/SCsub similarity index 100% rename from modules/PROJECT/SCsub rename to modules/authority/SCsub diff --git a/modules/authority/__pycache__/config.cpython-313.pyc b/modules/authority/__pycache__/config.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8d3597edc0190babb3bd28785427ea2442f0faea GIT binary patch literal 390 zcmZ8du};G<5cN5w4Xvue%9Pau_y-UZV$48Un5y8oNl+3;ml&xVKhclik5E>A0Fjk} zv)f3hmVEc_?%mz9hvjn4==?rD=P~&&7mNpvV7MT#XKQxFkgb6%WLyM_k3{m08_*pl zWcDlr!Q-b7CU_s{`mGO}GU>JktJXC|QU4%wQ)$^In8}0fOWZv25Vl@z8YJ7$ZPGvFyF*@A> z&?#>nA;KwH8tu1O)ad@mmye?-A%>KS1@~Kh-H-9add_singleton(Engine::Singleton("GameState", GameState::get_singleton())); +} + +void uninitialize_authority_module(ModuleInitializationLevel p_level) { + if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { + return; + } + if(game_state) { + memdelete(game_state); + } +} diff --git a/modules/authority/register_types.h b/modules/authority/register_types.h new file mode 100644 index 00000000..d55a194f --- /dev/null +++ b/modules/authority/register_types.h @@ -0,0 +1,9 @@ +#ifndef authority_REGISTER_TYPES_H +#define authority_REGISTER_TYPES_H + +#include "modules/register_module_types.h" + +void initialize_authority_module(ModuleInitializationLevel p_level); +void uninitialize_authority_module(ModuleInitializationLevel p_level); + +#endif // !authority_REGISTER_TYPES_H diff --git a/project/export_presets.cfg b/project/export_presets.cfg index a04762ac..fae5030f 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/authority.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/authority.exe" patches=PackedStringArray() encryption_include_filters="" encryption_exclude_filters="" diff --git a/project/project.godot b/project/project.godot index bd5ab3b0..8cd51d29 100644 --- a/project/project.godot +++ b/project/project.godot @@ -10,6 +10,6 @@ config_version=5 [application] -config/name="PROJECT" +config/name="authority" config/features=PackedStringArray("4.4", "Forward Plus") config/icon="res://icon.svg"