CreateEntity should be nodiscard
This commit is contained in:
@@ -40,6 +40,7 @@ concept Component = std::derived_from<T, BaseComponent>;
|
||||
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, "
|
||||
|
||||
Reference in New Issue
Block a user