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