CreateEntity should be nodiscard

This commit is contained in:
2026-01-28 13:47:28 +02:00
parent c1637a2a2e
commit 12796fa31b

View File

@@ -40,6 +40,7 @@ concept Component = std::derived_from<T, BaseComponent>;
class World { class World {
public: public:
// Entity // Entity
[[nodiscard]]
Entity CreateEntity(); Entity CreateEntity();
bool EntityExists(const Entity &entity) noexcept; bool EntityExists(const Entity &entity) noexcept;
[[nodiscard("It is not guaranteed that an entity can always be destroyed, " [[nodiscard("It is not guaranteed that an entity can always be destroyed, "