Hymn to Beauty
C++ 3D Engine
Component::Shape Class Reference

#include <Shape.hpp>

Inheritance diagram for Component::Shape:
Component::SuperComponent

Public Member Functions

 Shape ()=default
 Create new shape. More...
 
void Serialize (Json::Value &node, bool load) override
 Save or load component values to/from JSON. More...
 
std::shared_ptr<::Physics::ShapeGetShape () const
 Get the shape this component represents. More...
 
- Public Member Functions inherited from Component::SuperComponent
 SuperComponent ()
 Create new SuperComponent. More...
 
virtual ~SuperComponent ()
 Destructor. More...
 
void Kill ()
 Kill the component, will be removed at the end of the frame. More...
 
bool IsKilled () const
 Get whether component has been killed. More...
 

Friends

class ::PhysicsManager
 

Additional Inherited Members

- Public Attributes inherited from Component::SuperComponent
Entityentity = nullptr
 Pointer to which entity this component corresponds. More...
 

Detailed Description

Physical shape that can be used in conjunction with rigid bodies or to act as a trigger volume.

Constructor & Destructor Documentation

◆ Shape()

Component::Shape::Shape ( )
default

Create new shape.

Member Function Documentation

◆ GetShape()

std::shared_ptr< Physics::Shape > Component::Shape::GetShape ( ) const

Get the shape this component represents.

Returns
The Shape.

◆ Serialize()

void Component::Shape::Serialize ( Json::Value &  node,
bool  load 
)
overridevirtual

Save or load component values to/from JSON.

Parameters
nodeThe JSON node to save to or load from.
loadWhether to load (otherwise saves).

Implements Component::SuperComponent.

Friends And Related Function Documentation

◆ ::PhysicsManager

friend class ::PhysicsManager
friend

The documentation for this class was generated from the following files: