|
Hymn to Beauty
C++ 3D Engine
|
Component which all components inherit. More...
#include <SuperComponent.hpp>
Public Member Functions | |
| 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... | |
| virtual void | Serialize (Json::Value &node, bool load)=0 |
| Save or load component values to/from JSON. More... | |
Public Attributes | |
| Entity * | entity = nullptr |
| Pointer to which entity this component corresponds. More... | |
Component which all components inherit.
| SuperComponent::SuperComponent | ( | ) |
Create new SuperComponent.
|
virtual |
Destructor.
| bool SuperComponent::IsKilled | ( | ) | const |
Get whether component has been killed.
| void SuperComponent::Kill | ( | ) |
Kill the component, will be removed at the end of the frame.
|
pure virtual |
Save or load component values to/from JSON.
| node | The JSON node to save to or load from. |
| load | Whether to load (otherwise saves). |
Implemented in Component::Camera, Component::DirectionalLight, Component::Listener, Component::Material, Component::Mesh, Component::PointLight, Component::RigidBody, Component::Script, Component::Shape, Component::SoundSource, Component::SpotLight, Component::Sprite, and Component::Trigger.
| Entity* Component::SuperComponent::entity = nullptr |
Pointer to which entity this component corresponds.