CreateEntity should be nodiscard
This commit is contained in:
@@ -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, "
|
||||||
|
|||||||
Reference in New Issue
Block a user