From 12796fa31b9796436d9207a73d2b6c8be7214813 Mon Sep 17 00:00:00 2001 From: cat Date: Wed, 28 Jan 2026 13:47:28 +0200 Subject: [PATCH] CreateEntity should be nodiscard --- headers/Systems/ECS.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/headers/Systems/ECS.hpp b/headers/Systems/ECS.hpp index e97fa91..d7c63d4 100644 --- a/headers/Systems/ECS.hpp +++ b/headers/Systems/ECS.hpp @@ -40,6 +40,7 @@ concept Component = std::derived_from; class World { public: // Entity + [[nodiscard]] Entity CreateEntity(); bool EntityExists(const Entity &entity) noexcept; [[nodiscard("It is not guaranteed that an entity can always be destroyed, "