|
| Registry ()=default |
| Construct a new Registry object.
|
|
| Registry (std::size_t nbEntities) |
| Construct a new Registry object. More...
|
|
virtual | ~Registry ()=default |
| Destroy the Registry object.
|
|
template<class Component > |
Sparse_array< Component > & | register_component () |
| A method to register a component to the registry, it inserts it inside the various arrays contained in the object. More...
|
|
template<class Component > |
Sparse_array< Component > & | get_components () |
| Get the components object. More...
|
|
template<class Component > |
const Sparse_array< Component > & | get_components () const |
| Get the components object. More...
|
|
Entity | spawn_entity () |
| A method to spawn an entity, it adds it to the creators array. More...
|
|
template<class ... Components> |
Entity | spawn_entity_with (Components &&...components) |
| A method that create an entity and add all components you want to it. More...
|
|
Entity | entity_from_index (std::size_t idx) const |
| A method to get an entity with its index. More...
|
|
void | kill_entity (Entity const &e) |
| A method to kill an entity. More...
|
|
template<typename Component > |
Sparse_array< Component >::reference_type | add_component (Entity const &e, Component &&c) |
| A method to add a component to a known sparse array. More...
|
|
template<typename Component , typename ... Params> |
Sparse_array< Component >::reference_type | emplace_component (Entity const &to, Params &&...p) |
| A method to add a component at a position int the sparse array, a sparse array means that some cells mey be empty. More...
|
|
template<typename Component > |
void | remove_component (Entity const &from) |
| A method to remove a component from an entity. More...
|
|
template<class ... Component, typename Function > |
void | add_system (Function &&f) |
| A method to add a system to the registry, adds the element to the list of systems of the registry. More...
|
|
template<class ... Component, typename Function > |
void | add_system (Function const &f) |
| A method to add a system to the registry, adds the element to the list of systems of the registry. More...
|
|
void | run_systems () |
| A method that is used to run all the systems of the registry.
|
|