Parent class of components that can be bound to a scene::Manager.
More...
#include <OxygenEngine/scene/component/scene.h>
|
| | SceneComponent (Manager &entity) |
| | Constructor.
|
| |
|
Manager & | getSceneManager () |
| | Get Scene bound to this component.
|
| |
|
const Manager & | getSceneManager () const |
| | Get Scene bound to this component.
|
| |
| virtual void | onNodeAdd (Node &) |
| | Run actions after a node is added.
|
| |
| virtual void | onNodeRemove (Node &) |
| | Run actions before a node is removed.
|
| |
|
const std::string & | getName () const |
| |
| virtual void | onUpdate (const std::chrono::nanoseconds, const int8_t=0) |
| | Run actions on entity update.
|
| |
|
| bool | is_active = true |
| | Toggle to check if the Component is active, actual meaning heavily depends of the component type.
|
| |
|
| EntityComponent (Manager &entity) |
| |
|
Manager & | _entity |
| |
Parent class of components that can be bound to a scene::Manager.
◆ SceneComponent()
| oe::scene::SceneComponent::SceneComponent |
( |
Manager & |
entity | ) |
|
|
inline |
Constructor.
- Parameters
-
| entity | Manager bound to this component |
◆ onNodeAdd()
| virtual void oe::scene::SceneComponent::onNodeAdd |
( |
Node & |
| ) |
|
|
inlinevirtual |
Run actions after a node is added.
- Parameters
-
- Note
- When this function is called, the node is created and added into the scene
◆ onNodeRemove()
| virtual void oe::scene::SceneComponent::onNodeRemove |
( |
Node & |
| ) |
|
|
inlinevirtual |
Run actions before a node is removed.
- Parameters
-
| node | The node that will be removed |
- Note
- When this function is called, the node is still in the scene
Reimplemented in oe::component::scene::Debug.
The documentation for this class was generated from the following file:
- OxygenEngine/scene/component/scene.h