![]() |
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. | |
Public Attributes | |
entt::registry | m_entt |
Function that integrates a box2d construction with entt. | |
Private Member Functions | |
Registry (const Registry &)=delete | |
Create an entity with some default components. | |
Registry & | operator= (const Registry &)=delete |
Copy assignment operator. | |
Wrapper around entt::registry to expand functionality.
Definition at line 18 of file Registry.hpp.
galaxy::Registry::Registry | ( | ) |
Typedef for creating b2 bodies from components.
Constructor.
Definition at line 12 of file Registry.cpp.
galaxy::Registry::Registry | ( | Registry && | r | ) |
Move constructor.
Definition at line 16 of file Registry.cpp.
galaxy::Registry::~Registry | ( | ) |
Destructor.
Definition at line 31 of file Registry.cpp.
|
privatedelete |
Create an entity with some default components.
name | Name of the prefab to load. |
entity | Entity to validate. |
Updates pending component data.
For example, box2d bodies.
b2World | Box2d world data. Clear any pending data. Copy constructor. |
Move assignment operator.
Definition at line 21 of file Registry.cpp.
entt::registry galaxy::Registry::m_entt |
Function that integrates a box2d construction with entt.
registry | Registry component belongs to. |
entity | Entity component belongs to. Function that integrates a box2d destruction with entt. |
registry | Registry component belongs to. |
entity | Entity component belongs to. Function that integrates lua init with entt on construct event. |
registry | Registry component belongs to. |
entity | Entity component belongs to. Function that integrates lua destroy with entt on destruction event. |
registry | Registry component belongs to. |
entity | Entity component belongs to. Function that integrates nuklear init with entt on construct event. |
registry | Registry component belongs to. |
entity | Entity component belongs to. Function that integrates nuklear destroy with entt on destruction event. |
registry | Registry component belongs to. |
entity | Entity component belongs to. Function that runs when an entity is enabled. |
registry | Registry component belongs to. |
entity | Entity component belongs to. Function that runs when an entity is disabled. |
registry | Registry component belongs to. |
entity | Entity component belongs to. entt registry. |
Definition at line 167 of file Registry.hpp.