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

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

#include <System.hpp>

+ Collaboration diagram for galaxy::System:

Public Member Functions

virtual ~System () noexcept
 Destructor.
 
virtual void update (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 21 of file System.hpp.

Constructor & Destructor Documentation

◆ ~System()

galaxy::System::~System ( )
virtualnoexcept

Destructor.

Definition at line 17 of file System.cpp.

◆ System() [1/2]

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

Constructor.

Parameters
idSystem debug identifier.

Definition at line 12 of file System.cpp.

◆ System() [2/2]

galaxy::System::System ( )
privatedelete

Constructor.

Member Function Documentation

◆ update()

virtual void galaxy::System::update ( Registry & registry)
pure virtual

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

Parameters
registryEntity registry to process.

◆ id()

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

Get identifier.

Returns
Const string reference.

Definition at line 21 of file System.cpp.

Member Data Documentation

◆ m_id

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

Debug id.

Definition at line 62 of file System.hpp.


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