|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
#include <WindTrailComponent.h>
Public Member Functions | |
| WindTrail (Entities::Scene *owningScene) | |
| ~WindTrail () override=default | |
| void | beginPlay () override |
| Called when the component is added to the scene or the game starts. | |
| void | endPlay () override |
| Called when the component is removed or the game ends. | |
| std::shared_ptr< Entities::SceneNode > | getEmitterNode () const |
| Public Member Functions inherited from Engine::Components::Logic | |
| Logic (Entities::Scene *owningScene) | |
| virtual | ~Logic ()=default |
| virtual std::string | getComponentName () const |
| Gets the component type name for debugging/UI. | |
| virtual void | tick (double deltaTime) |
| Called every frame if ticking is enabled. | |
| bool | hasBegunPlay () const |
| bool | canTick () const |
| Checks if the component is currently set to tick. | |
| void | setCanTick (bool enable) |
| Enables or disables ticking for this component. | |
| Entities::Entity * | getOwningEntity () const |
| Gets the entity this component belongs to. | |
Static Public Attributes | |
| static constexpr bool | IsUnique = true |
| static constexpr const char * | ComponentName = "WindTrail" |
| Static Public Attributes inherited from Engine::Components::Logic | |
| 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. | |
| static constexpr const char * | ComponentName = "Logic" |
| Fallback component type name. Derived classes may override getComponentName() for custom labels. | |
Private Attributes | |
| std::shared_ptr< Entities::SceneNode > | emitterNode_ |
Additional Inherited Members | |
| Protected Member Functions inherited from Engine::Components::Logic | |
| Entities::Scene * | getScene () const |
| Gets the scene this component belongs to. | |
| Core::SceneManager * | getSceneManager () const |
| Helper to get the SceneManager from the owning scene. | |
Definition at line 14 of file WindTrailComponent.h.
|
explicit |
|
overridedefault |
|
overridevirtual |
Called when the component is added to the scene or the game starts.
Reimplemented from Engine::Components::Logic.
|
overridevirtual |
Called when the component is removed or the game ends.
Reimplemented from Engine::Components::Logic.
|
inlinenodiscard |
Definition at line 25 of file WindTrailComponent.h.
References emitterNode_.
|
staticconstexpr |
Definition at line 17 of file WindTrailComponent.h.
|
private |
Definition at line 28 of file WindTrailComponent.h.
Referenced by getEmitterNode().
|
staticconstexpr |
Definition at line 16 of file WindTrailComponent.h.