![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Wrapper around entt::registry to expand functionality. More...
#include <Registry.hpp>
Public Member Functions | |
Registry () | |
Typedef for creating b2 bodies from components. | |
Registry (Registry &&) | |
Move constructor. | |
Registry & | operator= (Registry &&) |
Move assignment operator. | |
~Registry () | |
Destructor. | |
entt::entity | create () |
Create an entity with some default components. | |
bool | is_valid (const entt::entity entity) |
Validate an entity to make sure all components have met their requirements as defined by register_dependencies(). | |
void | clear () |
Clear any pending data. | |
Public Attributes | |
entt::registry | m_entt |
Scene entities. | |
Private Member Functions | |
Registry (const Registry &)=delete | |
Copy constructor. | |
Registry & | operator= (const Registry &)=delete |
Copy assignment operator. | |
void | enable_entity (entt::registry ®istry, entt::entity entity) |
Function that runs when an entity is enabled. | |
void | disable_entity (entt::registry ®istry, entt::entity entity) |
Function that runs when an entity is disabled. | |
Wrapper around entt::registry to expand functionality.
Definition at line 20 of file Registry.hpp.
galaxy::core::Registry::Registry | ( | ) |
Typedef for creating b2 bodies from components.
Constructor.
Definition at line 20 of file Registry.cpp.
galaxy::core::Registry::Registry | ( | Registry && | r | ) |
Move constructor.
Definition at line 31 of file Registry.cpp.
galaxy::core::Registry::~Registry | ( | ) |
Destructor.
Definition at line 48 of file Registry.cpp.
|
privatedelete |
Copy constructor.
Move assignment operator.
Definition at line 37 of file Registry.cpp.
entt::entity galaxy::core::Registry::create | ( | ) |
Create an entity with some default components.
Definition at line 52 of file Registry.cpp.
|
nodiscard |
Validate an entity to make sure all components have met their requirements as defined by register_dependencies().
entity | Entity to validate. |
Definition at line 78 of file Registry.cpp.
void galaxy::core::Registry::clear | ( | ) |
Clear any pending data.
Definition at line 124 of file Registry.cpp.
Copy assignment operator.
|
private |
Function that runs when an entity is enabled.
registry | Registry component belongs to. |
entity | Entity component belongs to. |
Definition at line 262 of file Registry.cpp.
|
private |
Function that runs when an entity is disabled.
registry | Registry component belongs to. |
entity | Entity component belongs to. |
Definition at line 271 of file Registry.cpp.
entt::registry galaxy::core::Registry::m_entt |
Scene entities.
Definition at line 169 of file Registry.hpp.