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
System.cpp
Go to the documentation of this file.
1
7
8#include "System.hpp"
9
10namespace galaxy
11{
12 System::System(const std::string& id) noexcept
13 : m_id {id}
14 {
15 }
16
17 System::System(System&& s) noexcept
18 {
19 this->m_id = std::move(s.m_id);
20 }
21
23 {
24 if (this != &s)
25 {
26 this->m_id = std::move(s.m_id);
27 }
28
29 return *this;
30 }
31
32 System::~System() noexcept
33 {
34 }
35
36 const std::string& System::id() const noexcept
37 {
38 return m_id;
39 }
40} // namespace galaxy
Represents a system that operates on sets of components.
Definition System.hpp:22
std::string m_id
Debug id.
Definition System.hpp:81
System()=delete
Constructor.
const std::string & id() const noexcept
Get identifier.
Definition System.cpp:36
virtual ~System() noexcept
Destructor.
Definition System.cpp:32
System & operator=(System &&) noexcept
Move assignment operator.
Definition System.cpp:22
Animated.cpp galaxy.
Definition Animated.cpp:16