Euphoria
|
eu::core::ecs::Registry Struct Reference
#include <ecs.h>
Public Member Functions | |
Registry () | |
~Registry () | |
Registry (const Registry &)=delete | |
Registry (Registry &&)=delete | |
Registry & | operator= (const Registry &)=delete |
Registry & | operator= (Registry &&)=delete |
EntityHandle | create () |
void | destroy (EntityHandle entity) |
ComponentIndex | set_component_array (const std::string &name, std::unique_ptr< ComponentArrayBase > &&components) |
template<typename T > | |
ComponentIndex | register_component (const std::string &name) |
template<typename T > | |
void | add_component (EntityHandle entity, ComponentIndex comp_ind, T &&component) |
template<typename T > | |
void | remove_component (EntityHandle entity, ComponentIndex comp_ind) |
template<typename T > | |
T & | get_component (EntityHandle entity, ComponentIndex comp_ind) |
template<typename T > | |
T * | get_component_or_null (EntityHandle entity, ComponentIndex comp_ind) |
std::string | get_component_debug_name (ComponentIndex c) const |
bool | has_component (EntityHandle entity, ComponentIndex comp_ind) const |
std::vector< EntityHandle > | view (const std::vector< ComponentIndex > &matching_components) const |
int | get_number_of_active_entities () const |
Detailed Description
Constructor & Destructor Documentation
◆ Registry() [1/3]
◆ ~Registry()
◆ Registry() [2/3]
|
delete |
◆ Registry() [3/3]
|
delete |
Member Function Documentation
◆ add_component()
template<typename T >
|
inline |
◆ create()
EntityHandle eu::core::ecs::Registry::create | ( | ) |
◆ destroy()
void eu::core::ecs::Registry::destroy | ( | EntityHandle | entity | ) |
◆ get_component()
template<typename T >
|
inline |
◆ get_component_debug_name()
std::string eu::core::ecs::Registry::get_component_debug_name | ( | ComponentIndex | c | ) | const |
◆ get_component_or_null()
template<typename T >
|
inline |
◆ get_number_of_active_entities()
int eu::core::ecs::Registry::get_number_of_active_entities | ( | ) | const |
◆ has_component()
bool eu::core::ecs::Registry::has_component | ( | EntityHandle | entity, |
ComponentIndex | comp_ind | ||
) | const |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ register_component()
template<typename T >
|
inline |
◆ remove_component()
template<typename T >
|
inline |
◆ set_component_array()
ComponentIndex eu::core::ecs::Registry::set_component_array | ( | const std::string & | name, |
std::unique_ptr< ComponentArrayBase > && | components | ||
) |
◆ view()
std::vector< EntityHandle > eu::core::ecs::Registry::view | ( | const std::vector< ComponentIndex > & | matching_components | ) | const |
The documentation for this struct was generated from the following files: