diff --git a/headers/Systems/ECS.hpp b/headers/Systems/ECS.hpp index b3b7ad0..f737e34 100644 --- a/headers/Systems/ECS.hpp +++ b/headers/Systems/ECS.hpp @@ -70,6 +70,11 @@ public: return entityComponentMap.remove(entity, typeid(component)); } + // Copying is not allowed since the ECS world is meant to be + // a session with its own private session sensitive variables + World(const World &) = delete; + World &operator=(const World &) = delete; + private: Tourmaline::Containers::DualkeyMap entityComponentMap{};