|
|
| ecs::Entity::Entity ()=delete |
| | Deleted default constructor, use Registry::createEntity() instead.
|
| |
|
| ecs::Entity::~Entity ()=default |
| | Destroy the Entity object.
|
| |
| template<class Component> |
| void | ecs::Entity::addComponent (Component &&c) |
| | add a component to the entity using the registryRef method addComponent
|
| |
| template<class Component> |
| void | ecs::Entity::removeComponent () |
| | remove a component from the entity using the registryRef method removeComponent
|
| |
| | ecs::Entity::Entity (size_t idx, RegistryRef ecs) |
| | Construct a new Entity object with the given index and registry reference.
|
| |
| Entity | ecs::Registry::createEntity () |
| | handling entities (define in Registry.cpp)
|
| |
| Entity | ecs::Registry::entityFromIndex (std::size_t idx) |
| | Create a Entity object from an index.
|
| |
| void | ecs::Registry::killEntity (Entity const &e) |
| | Kill the given entity.
|
| |
| template<class Component> |
| SparseArray< Component > & | ecs::Registry::registerComponent () |
| | handling components (define in Registry_impl.hpp)
|
| |
| template<class ... Components> |
| void | ecs::Registry::registerComponents () |
| | register a list of components
|
| |
| template<class Tuple> |
| void | ecs::Registry::registerComponentsByExtraction () |
| | register every components by extraction from a tuple
|
| |
| template<class Component> |
| SparseArray< Component > & | ecs::Registry::getComponents () |
| | get components of a given type
|
| |
| template<class Component> |
| const SparseArray< Component > & | ecs::Registry::getComponents () const |
| | get immutable components of a given type
|
| |
| template<typename Component> |
| SparseArray< Component >::reference_type | ecs::Registry::addComponent (Entity const &to, Component &&c) |
| |
| template<typename Component, typename ... Params> |
| SparseArray< Component >::reference_type | ecs::Registry::emplaceComponent (Entity const &to, Params &&... p) |
| | emplace a component to the given entity
|
| |
| template<typename Component> |
| void | ecs::Registry::removeComponent (Entity const &from) |
| | remove a component from the given entity
|
| |
| template<typename T, typename... Args> |
| size_t | ecs::Registry::addSystem (Args &&... args) |
| | handling systems
|
| |
| template<typename T> |
| size_t | ecs::Registry::addSystem (std::unique_ptr< T > existingSystem) |
| | add a system to the registry
|
| |
| template<typename T> |
| void | ecs::Registry::removeSystem () |
| | remove a system from the registry
|
| |
| template<typename T> |
| void | ecs::Registry::callSystem () |
| | call a system
|
| |
|
void | ecs::Registry::callSystems () |
| | call all systems
|
| |
| template<typename Component> |
| std::ostream & | ecs::operator<< (std::ostream &os, std::optional< Component > const &c) |
| | help to print the optional value
|
| |
|
| ecs::SparseArray< Component >::SparseArray ()=default |
| | construct a new SparseArray object
|
| |
| | ecs::SparseArray< Component >::SparseArray (SparseArray const &)=default |
| | copy constructor
|
| |
| | ecs::SparseArray< Component >::SparseArray (SparseArray &&) noexcept=default |
| | move constructor
|
| |
|
| ecs::SparseArray< Component >::~SparseArray ()=default |
| | Destroy the Sparse Array object.
|
| |
| SparseArray & | ecs::SparseArray< Component >::operator= (SparseArray const &)=default |
| | copy operator=
|
| |
| SparseArray & | ecs::SparseArray< Component >::operator= (SparseArray &&) noexcept=default |
| | move operator=
|
| |
| reference_type | ecs::SparseArray< Component >::operator[] (size_t idx) |
| | give the value at the index idx of the SparseArray
|
| |
| const_reference_type | ecs::SparseArray< Component >::operator[] (size_t idx) const |
| | give the value at the index idx of the SparseArray (const)
|
| |
| iterator | ecs::SparseArray< Component >::begin () |
| | give a iterator at the begining of the SparseArray
|
| |
| const_iterator | ecs::SparseArray< Component >::begin () const |
| | give a const_iterator at the begining of the SparseArray
|
| |
| const_iterator | ecs::SparseArray< Component >::cbegin () const |
| | give a const_iterator at the begining of the SparseArray
|
| |
| iterator | ecs::SparseArray< Component >::end () |
| | give a iterator at the end of the SparseArray
|
| |
| const_iterator | ecs::SparseArray< Component >::end () const |
| | give a const_iterator at the end of the SparseArray
|
| |
| const_iterator | ecs::SparseArray< Component >::cend () const |
| | give a const_iterator at the end of the SparseArray
|
| |
| size_type | ecs::SparseArray< Component >::size () const |
| | give the size of the SparseArray
|
| |
| reference_type | ecs::SparseArray< Component >::insertAt (size_type pos, Component const &c) |
| | insert a component at the given position & return a reference to it
|
| |
| reference_type | ecs::SparseArray< Component >::insertAt (size_type pos, Component &&c) |
| | insert a component at the given position & return a reference to it
|
| |
| template<class ... Params> |
| reference_type | ecs::SparseArray< Component >::emplaceAt (size_type pos, Params &&...args) |
| | emplace a component at the given position & return a reference to it
|
| |
| void | ecs::SparseArray< Component >::erase (size_type pos) |
| | erase the component at the given position
|
| |
| size_type | ecs::SparseArray< Component >::getIndex (const value_type &v) const |
| | get the index of the given value
|
| |
|
void | ecs::SparseArray< Component >::print () const |
| | print the SparseArray
|
| |
|
virtual void | ecs::System::lambda (Registry &)=0 |
| |