From b457ecce471d5c7fe31412807de3f04e4a290ceb Mon Sep 17 00:00:00 2001 From: cat Date: Tue, 6 Jan 2026 03:10:27 +0200 Subject: [PATCH] Restructing on the project --- {source => headers}/ECS.hpp | 0 {source => headers}/Systems/Logging.hpp | 4 +++- {source => headers}/Systems/Random.hpp | 0 {source => headers}/Types.hpp | 0 source/ECS/Component.cpp | 2 +- source/ECS/World.cpp | 4 ++-- source/Systems/{Implementation => }/Logging.cpp | 3 ++- source/Systems/{Implementation => }/Random.cpp | 3 ++- source/Types/UUID.cpp | 3 ++- 9 files changed, 12 insertions(+), 7 deletions(-) rename {source => headers}/ECS.hpp (100%) rename {source => headers}/Systems/Logging.hpp (92%) rename {source => headers}/Systems/Random.hpp (100%) rename {source => headers}/Types.hpp (100%) rename source/Systems/{Implementation => }/Logging.cpp (97%) rename source/Systems/{Implementation => }/Random.cpp (94%) diff --git a/source/ECS.hpp b/headers/ECS.hpp similarity index 100% rename from source/ECS.hpp rename to headers/ECS.hpp diff --git a/source/Systems/Logging.hpp b/headers/Systems/Logging.hpp similarity index 92% rename from source/Systems/Logging.hpp rename to headers/Systems/Logging.hpp index 60794d1..1fe3ccd 100644 --- a/source/Systems/Logging.hpp +++ b/headers/Systems/Logging.hpp @@ -6,7 +6,8 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. */ - +#ifndef GUARD_TOURMALINE_LOGGING_H +#define GUARD_TOURMALINE_LOGGING_H #include #include #include @@ -33,3 +34,4 @@ private: static std::array LogLevelToString; }; } // namespace Tourmaline::Systems +#endif diff --git a/source/Systems/Random.hpp b/headers/Systems/Random.hpp similarity index 100% rename from source/Systems/Random.hpp rename to headers/Systems/Random.hpp diff --git a/source/Types.hpp b/headers/Types.hpp similarity index 100% rename from source/Types.hpp rename to headers/Types.hpp diff --git a/source/ECS/Component.cpp b/source/ECS/Component.cpp index 6c8ca52..c5d0228 100644 --- a/source/ECS/Component.cpp +++ b/source/ECS/Component.cpp @@ -7,7 +7,7 @@ * obtain one at http://mozilla.org/MPL/2.0/. */ -#include "../ECS.hpp" +#include "../../headers/ECS.hpp" using namespace Tourmaline::ECS; diff --git a/source/ECS/World.cpp b/source/ECS/World.cpp index 02a6e21..78448bc 100644 --- a/source/ECS/World.cpp +++ b/source/ECS/World.cpp @@ -7,8 +7,8 @@ * obtain one at http://mozilla.org/MPL/2.0/. */ -#include "../ECS.hpp" -#include "../Systems/Random.hpp" +#include "../../headers/ECS.hpp" +#include "../../headers/Systems/Random.hpp" using namespace Tourmaline::ECS; diff --git a/source/Systems/Implementation/Logging.cpp b/source/Systems/Logging.cpp similarity index 97% rename from source/Systems/Implementation/Logging.cpp rename to source/Systems/Logging.cpp index 37f0e30..ef95103 100644 --- a/source/Systems/Implementation/Logging.cpp +++ b/source/Systems/Logging.cpp @@ -7,7 +7,8 @@ * obtain one at http://mozilla.org/MPL/2.0/. */ -#include "../Logging.hpp" +#include "../../headers/Systems/Logging.hpp" + #include #include #include diff --git a/source/Systems/Implementation/Random.cpp b/source/Systems/Random.cpp similarity index 94% rename from source/Systems/Implementation/Random.cpp rename to source/Systems/Random.cpp index 1d36cd3..c131964 100644 --- a/source/Systems/Implementation/Random.cpp +++ b/source/Systems/Random.cpp @@ -6,7 +6,8 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. */ -#include "../Random.hpp" +#include "../../headers/Systems/Random.hpp" + #include #include #include diff --git a/source/Types/UUID.cpp b/source/Types/UUID.cpp index 6c41ff0..692c6ed 100644 --- a/source/Types/UUID.cpp +++ b/source/Types/UUID.cpp @@ -7,7 +7,8 @@ * obtain one at http://mozilla.org/MPL/2.0/. */ -#include "../Types.hpp" +#include "../../headers/Types.hpp" + #include #include #include