16 friend class ::PhysicsManager;
22 void Serialize(Json::Value& node,
bool load)
override;
28 std::shared_ptr<::Physics::Shape>
GetShape()
const;
32 void SetShape(std::shared_ptr<::Physics::Shape> shape);
33 Json::Value Save()
const;
34 void Load(Json::Value& node);
36 std::shared_ptr<::Physics::Shape> shape =
nullptr;
Shape()=default
Create new shape.
void Serialize(Json::Value &node, bool load) override
Save or load component values to/from JSON.
Definition: Shape.cpp:14
std::shared_ptr<::Physics::Shape > GetShape() const
Get the shape this component represents.
Definition: Shape.cpp:22
Component which all components inherit.
Definition: SuperComponent.hpp:9
Updates the physics of the world.
Definition: PhysicsManager.hpp:28
Definition: BoxShapeEditor.hpp:5
Definition: IShapeEditor.hpp:7