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
Disabled.cpp
Go to the documentation of this file.
1
7
8#include <nlohmann/json.hpp>
9
11
12#include "Disabled.hpp"
13
14namespace galaxy
15{
16 namespace flags
17 {
19 {
20 }
21
22 Disabled::Disabled(const nlohmann::json& json)
23 {
24 GALAXY_UNUSED(json);
25 }
26
28 {
30 }
31
33 {
35 return *this;
36 }
37
39 {
40 }
41
42 nlohmann::json Disabled::serialize()
43 {
44 return "{}"_json;
45 }
46
47 void Disabled::deserialize(const nlohmann::json& json)
48 {
49 GALAXY_UNUSED(json);
50 }
51 } // namespace flags
52} // namespace galaxy
#define GALAXY_UNUSED(var)
Prevents compiler warnings when applied to unused parameters.
Definition Settings.hpp:285
Used to stop an entity from being updated/rendered.
Definition Disabled.hpp:21
Disabled() noexcept
Constructor.
Definition Disabled.cpp:18
virtual ~Disabled() noexcept
Destructor.
Definition Disabled.cpp:38
Disabled & operator=(Disabled &&) noexcept
Move assignment operator.
Definition Disabled.cpp:32
nlohmann::json serialize() override
Serializes object.
Definition Disabled.cpp:42
void deserialize(const nlohmann::json &json) override
Deserializes from object.
Definition Disabled.cpp:47
Timer.hpp galaxy.
Definition Async.hpp:17