|
| Entity | createEntity () |
| | handling entities (define in Registry.cpp)
|
| |
| Entity | entityFromIndex (std::size_t idx) |
| | Create a Entity object from an index.
|
| |
| void | killEntity (Entity const &e) |
| | Kill the given entity.
|
| |
| template<typename Component > |
| SparseArray< Component > & | registerComponent () |
| | handling components (define in Registry_impl.hpp)
|
| |
| template<class ... Components> |
| void | registerComponents () |
| | register a list of components
|
| |
| template<IsTuple Tuple> |
| void | registerComponentsByExtraction () |
| | register every components by extraction from a tuple
|
| |
| template<class Component > |
| SparseArray< Component > & | getComponents () |
| | get components of a given type
|
| |
| template<class Component > |
| const SparseArray< Component > & | getComponents () const |
| | get immutable components of a given type
|
| |
| template<typename... Component, typename = std::enable_if_t<(sizeof...(Component) != 0)>> |
| void | addComponent (Entity const &to, Component &&...c) |
| |
| template<typename Component , typename ... Params> |
| void | emplaceComponent (Entity const &to, Params &&... p) |
| | emplace a component to the given entity
|
| |
| template<typename... Component, typename = std::enable_if<(sizeof...(Component) != 0)>> |
| void | removeComponent (Entity const &from) |
| | remove a component from the given entity
|
| |
| template<SystemImplementation System> |
| void | addSystem (System &s) |
| | handling systems
|
| |
| template<SystemImplementation System> |
| void | addSystem (System &&s) |
| | add rvalue
|
| |
| template<SystemImplementation... System, typename = std::enable_if<(sizeof...(System) != 0)>> |
| void | addSystem (System &&... s) |
| | add a system to the registry
|
| |
| template<SystemImplementation System, typename ... Params> |
| void | emplaceSystem (Params &&... params) |
| | add a system to the registry
|
| |
| template<SystemImplementation ... System, typename = std::enable_if<(sizeof...(System) != 0)>> |
| void | removeSystem () |
| | remove a system from the registry
|
| |
| template<SystemImplementation ... System, typename = std::enable_if<(sizeof...(System) != 0)>> |
| void | callSystem () |
| | call a system
|
| |
| template<SystemImplementation System, typename... Args> |
| void | emplaceSystem (Args &&... args) |
| |
define the Registry class
- Examples
- TestEcs.cpp.