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::systems::System Class Referenceabstract

Represents a system that operates on sets of components. More...

#include <System.hpp>

+ Inheritance diagram for galaxy::systems::System:
+ Collaboration diagram for galaxy::systems::System:

Public Member Functions

virtual ~System () noexcept
 Destructor.
 
virtual void update (entt::registry &registry)=0
 Abstract implementation for updating the system. Use the manager to retreive your components.
 
const std::string & id () const noexcept
 Get identifier.
 

Protected Member Functions

 System (const std::string &id) noexcept
 Constructor.
 

Protected Attributes

std::string m_id
 Debug id.
 

Private Member Functions

 System ()=delete
 Constructor.
 

Detailed Description

Represents a system that operates on sets of components.

Definition at line 23 of file System.hpp.

Constructor & Destructor Documentation

◆ ~System()

galaxy::systems::System::~System ( )
virtualnoexcept

Destructor.

Definition at line 19 of file System.cpp.

◆ System() [1/2]

galaxy::systems::System::System ( const std::string & id)
protectednoexcept

Constructor.

Parameters
idSystem debug identifier.

Definition at line 14 of file System.cpp.

◆ System() [2/2]

galaxy::systems::System::System ( )
privatedelete

Constructor.

Member Function Documentation

◆ update()

virtual void galaxy::systems::System::update ( entt::registry & registry)
pure virtual

Abstract implementation for updating the system. Use the manager to retreive your components.

Parameters
EnTTregistry to process entities from.

Implemented in galaxy::systems::AnimationSystem, galaxy::systems::PhysicsSystem, galaxy::systems::RenderSystem, and galaxy::systems::ScriptSystem.

◆ id()

const std::string & galaxy::systems::System::id ( ) const
nodiscardnoexcept

Get identifier.

Returns
Const string reference.

Definition at line 23 of file System.cpp.

Member Data Documentation

◆ m_id

std::string galaxy::systems::System::m_id
protected

Debug id.

Definition at line 64 of file System.hpp.


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