galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
EntityManager.cpp
Go to the documentation of this file.
1
7
8#include "EntityManager.hpp"
9
10namespace galaxy
11{
13 {
14 }
15
17 {
18 this->m_registry = std::move(em.m_registry);
19 }
20
22 {
23 if (this != &em)
24 {
25 this->m_registry = std::move(em.m_registry);
26 }
27
28 return *this;
29 }
30
32 {
33 }
34
36 {
37 return m_registry;
38 }
39} // namespace galaxy
Class for making creating and managing entities easier.
Registry m_registry
Entity data.
EntityManager() noexcept
Constructor.
EntityManager & operator=(EntityManager &&) noexcept
Move assignment operator.
Registry & registry() noexcept
Get entity registry.
~EntityManager() noexcept
Destructor.
Wrapper around entt::registry to expand functionality.
Definition Registry.hpp:19
Application.hpp galaxy.