|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
#include <TestComponent.h>
Public Member Functions | |
| TestComponent (Scene *scene, int id) | |
| ~TestComponent () override | |
| void | beginPlay () override |
| Called when the component is added to the scene or the game starts. | |
| void | tick (double deltaTime) override |
| Called every frame if ticking is enabled. | |
| void | endPlay () override |
| Called when the component is removed or the game ends. | |
| int | getId () const |
| Public Member Functions inherited from EngineCore::LogicComponent | |
| LogicComponent (Scene *owningScene) | |
| virtual | ~LogicComponent ()=default |
| bool | canTick () const |
| Checks if the component is currently set to tick. | |
| void | setCanTick (bool enable) |
| Enables or disables ticking for this component. | |
| Entity * | getOwningEntity () const |
| Gets the entity this component belongs to. | |
Static Public Attributes | |
| static constexpr bool | IsUnique = false |
| Static Public Attributes inherited from EngineCore::LogicComponent | |
| static constexpr bool | IsUnique = false |
| Defines whether multiple instances of this component can exist on the same entity. Defaults to false (multiple allowed). Override in derived classes with static constexpr bool IsUnique = true; if needed. | |
Private Attributes | |
| int | id |
Additional Inherited Members | |
| Protected Member Functions inherited from EngineCore::LogicComponent | |
| Scene * | getScene () const |
| Gets the scene this component belongs to. | |
| SceneManager * | getSceneManager () const |
| Helper to get the SceneManager from the owning scene. | |
Definition at line 7 of file TestComponent.h.
|
explicit |
Definition at line 6 of file TestComponent.cpp.
References id, EngineCore::LogicComponent::LogicComponent(), EngineCore::LogicComponent::scene, and EngineCore::LogicComponent::setCanTick().
|
override |
Definition at line 11 of file TestComponent.cpp.
|
overridevirtual |
Called when the component is added to the scene or the game starts.
Reimplemented from EngineCore::LogicComponent.
Definition at line 15 of file TestComponent.cpp.
|
overridevirtual |
Called when the component is removed or the game ends.
Reimplemented from EngineCore::LogicComponent.
Definition at line 23 of file TestComponent.cpp.
|
inline |
Definition at line 18 of file TestComponent.h.
References id.
|
overridevirtual |
Called every frame if ticking is enabled.
| deltaTime | Time elapsed since last frame. |
Reimplemented from EngineCore::LogicComponent.
Definition at line 19 of file TestComponent.cpp.
|
private |
Definition at line 21 of file TestComponent.h.
Referenced by getId(), and TestComponent().
|
staticconstexpr |
Definition at line 9 of file TestComponent.h.