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
galaxy::EntityManager Class Referencefinal

Class for making creating and managing entities easier. More...

#include <EntityManager.hpp>

Collaboration diagram for galaxy::EntityManager:

Public Member Functions

 EntityManager () noexcept
 Typedef for creating b2 bodies from components.
 EntityManager (EntityManager &&) noexcept
 Move constructor.
EntityManager & operator= (EntityManager &&) noexcept
 Move assignment operator.
 ~EntityManager () noexcept
 Destructor.
entt::registry & registry () noexcept
 Get entity registry.

Private Member Functions

 EntityManager (const EntityManager &)=delete
 Copy constructor.
EntityManager & operator= (const EntityManager &)=delete
 Copy assignment operator.

Private Attributes

entt::registry m_registry
 entt registry.

Detailed Description

Class for making creating and managing entities easier.

Uses an entt::registry internally.

Definition at line 20 of file EntityManager.hpp.

Constructor & Destructor Documentation

◆ EntityManager() [1/3]

galaxy::EntityManager::EntityManager ( )
noexcept

Typedef for creating b2 bodies from components.

Constructor.

Definition at line 12 of file EntityManager.cpp.

Here is the caller graph for this function:

◆ EntityManager() [2/3]

galaxy::EntityManager::EntityManager ( EntityManager && em)
noexcept

Move constructor.

Definition at line 16 of file EntityManager.cpp.

Here is the call graph for this function:

◆ ~EntityManager()

galaxy::EntityManager::~EntityManager ( )
noexcept

Destructor.

Definition at line 31 of file EntityManager.cpp.

◆ EntityManager() [3/3]

galaxy::EntityManager::EntityManager ( const EntityManager & )
privatedelete

Copy constructor.

Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

EntityManager & galaxy::EntityManager::operator= ( EntityManager && em)
noexcept

Move assignment operator.

Definition at line 21 of file EntityManager.cpp.

Here is the call graph for this function:

◆ registry()

entt::registry & galaxy::EntityManager::registry ( )
nodiscardnoexcept

Get entity registry.

Returns
Reference.

Definition at line 35 of file EntityManager.cpp.

Here is the caller graph for this function:

◆ operator=() [2/2]

EntityManager & galaxy::EntityManager::operator= ( const EntityManager & )
privatedelete

Copy assignment operator.

Here is the call graph for this function:

Member Data Documentation

◆ m_registry

entt::registry galaxy::EntityManager::m_registry
private

entt registry.

Definition at line 71 of file EntityManager.hpp.


The documentation for this class was generated from the following files: