8#ifndef GALAXY_COMPONENTS_POLYGON_HPP_
9#define GALAXY_COMPONENTS_POLYGON_HPP_
11#include "galaxy/fs/Serializable.hpp"
21 class Polygon final :
public fs::Serializable
34 Polygon(
const nlohmann::json& json);
64 void deserialize(
const nlohmann::json& json)
override;
graphics::Polygon m_shape
Shape.
Polygon & operator=(const Polygon &)=delete
Copy assignment operator.
Polygon & operator=(Polygon &&)
Move assignment operator.
Polygon(const Polygon &)=delete
Copy constructor.
nlohmann::json serialize() override
Serializes object.
virtual ~Polygon()
Destructor.
void deserialize(const nlohmann::json &json) override
Deserializes from object.
A closed loop line collection of points. I.e. A square, triangle, etc.