My Project
|
Class that handle entity in a sparse array like an index. More...
#include <Entity.hpp>
Public Member Functions | |
Entity (std::size_t id) | |
Construct a new Entity object. More... | |
~Entity ()=default | |
Destroy the Entity object. | |
operator std::size_t () const | |
Operator () to return _id of the entity. More... | |
Friends | |
class | Registry |
Friend object so that the Entoty can access the Registry object. | |
Class that handle entity in a sparse array like an index.
|
inlineexplicit |
Construct a new Entity object.
id | Index of the entity |
|
inline |
Operator () to return _id of the entity.