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
Circle.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_COMPONENTS_CIRCLE_HPP_
9#define GALAXY_COMPONENTS_CIRCLE_HPP_
10
12#include "galaxy/graphics/shapes/Circle.hpp"
13
14namespace galaxy
15{
16 namespace components
17 {
21 class Circle final : public fs::Serializable
22 {
23 public:
27 Circle();
28
34 Circle(const nlohmann::json& json);
35
39 Circle(Circle&&);
40
45
49 virtual ~Circle();
50
56 [[nodiscard]]
57 nlohmann::json serialize() override;
58
64 void deserialize(const nlohmann::json& json) override;
65
66 private:
70 Circle& operator=(const Circle&) = delete;
71
75 Circle(const Circle&) = delete;
76
77 public:
81 graphics::Circle m_shape;
82 };
83 } // namespace components
84} // namespace galaxy
85
86#endif
graphics::Circle m_shape
Shape.
Definition Circle.hpp:81
Circle & operator=(Circle &&)
Move assignment operator.
Definition Circle.cpp:33
Circle & operator=(const Circle &)=delete
Copy assignment operator.
virtual ~Circle()
Destructor.
Definition Circle.cpp:43
nlohmann::json serialize() override
Serializes object.
Definition Circle.cpp:47
Circle(const Circle &)=delete
Copy constructor.
void deserialize(const nlohmann::json &json) override
Deserializes from object.
Definition Circle.cpp:61
Allows a class to be serialized.
Timer.hpp galaxy.
Definition Async.hpp:17