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.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_FLAGS_DISABLED_HPP_
9#define GALAXY_FLAGS_DISABLED_HPP_
10
12
13namespace galaxy
14{
15 namespace flags
16 {
20 class Disabled final : public fs::Serializable
21 {
22 public:
26 Disabled() noexcept;
27
33 Disabled(const nlohmann::json& json);
34
38 Disabled(Disabled&&) noexcept;
39
43 Disabled& operator=(Disabled&&) noexcept;
44
48 virtual ~Disabled() noexcept;
49
55 [[nodiscard]]
56 nlohmann::json serialize() override;
57
63 void deserialize(const nlohmann::json& json) override;
64
65 private:
69 Disabled& operator=(const Disabled&) = delete;
70
74 Disabled(const Disabled&) = delete;
75 };
76 } // namespace flags
77} // namespace galaxy
78
79#endif
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(const Disabled &)=delete
Copy constructor.
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
Disabled & operator=(const Disabled &)=delete
Copy assignment operator.
Allows a class to be serialized.
Timer.hpp galaxy.
Definition Async.hpp:17