Restructuring

This commit is contained in:
2026-01-09 00:23:21 +02:00
parent e8498f9e66
commit 518995ddd1
4 changed files with 11 additions and 11 deletions

View File

@@ -12,8 +12,8 @@ include(GNUInstallDirs)
include_directories(headers)
add_library(${PROJECT_NAME} SHARED
"source/ECS/Component.cpp"
"source/ECS/World.cpp"
"source/Systems/ECS/Component.cpp"
"source/Systems/ECS/World.cpp"
"source/Systems/Logging.cpp"
"source/Systems/Random.cpp"
"source/Types/UUID.cpp")

View File

@@ -15,10 +15,10 @@
#include <unordered_map>
#include <utility>
#include "Systems/Logging.hpp"
#include "Types.hpp"
#include "../Types.hpp"
#include "Logging.hpp"
namespace Tourmaline::ECS {
namespace Tourmaline::Systems::ECS {
using Entity = Tourmaline::Type::UUID;
class World;
@@ -142,5 +142,5 @@ private:
Tourmaline::Systems::Logging::LogLevel severity =
Systems::Logging::LogLevel::Warning);
};
} // namespace Tourmaline::ECS
} // namespace Tourmaline::Systems::ECS
#endif

View File

@@ -7,8 +7,8 @@
* obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "../../headers/ECS.hpp"
#include "../../../headers/Systems/ECS.hpp"
using namespace Tourmaline::ECS;
using namespace Tourmaline::Systems::ECS;
const Entity &BaseComponent::GetOwner() { return *this->owner; }

View File

@@ -7,10 +7,10 @@
* obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "../../headers/ECS.hpp"
#include "../../headers/Systems/Random.hpp"
#include "../../../headers/Systems/ECS.hpp"
#include "../../../headers/Systems/Random.hpp"
using namespace Tourmaline::ECS;
using namespace Tourmaline::Systems::ECS;
Entity World::CreateEntity() {
auto [iterator, success] =