Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Components::WindTrail Class Reference

#include <WindTrailComponent.h>

Inheritance diagram for Engine::Components::WindTrail:
Collaboration diagram for Engine::Components::WindTrail:

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::SceneNodegetEmitterNode () 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::EntitygetOwningEntity () 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::SceneNodeemitterNode_

Additional Inherited Members

Protected Member Functions inherited from Engine::Components::Logic
Entities::ScenegetScene () const
 Gets the scene this component belongs to.
Core::SceneManagergetSceneManager () const
 Helper to get the SceneManager from the owning scene.

Detailed Description

Definition at line 14 of file WindTrailComponent.h.

Constructor & Destructor Documentation

◆ WindTrail()

Engine::Components::WindTrail::WindTrail ( Entities::Scene * owningScene)
explicit

◆ ~WindTrail()

Engine::Components::WindTrail::~WindTrail ( )
overridedefault

Member Function Documentation

◆ beginPlay()

void Engine::Components::WindTrail::beginPlay ( )
overridevirtual

Called when the component is added to the scene or the game starts.

Reimplemented from Engine::Components::Logic.

◆ endPlay()

void Engine::Components::WindTrail::endPlay ( )
overridevirtual

Called when the component is removed or the game ends.

Reimplemented from Engine::Components::Logic.

◆ getEmitterNode()

std::shared_ptr< Entities::SceneNode > Engine::Components::WindTrail::getEmitterNode ( ) const
inlinenodiscard

Definition at line 25 of file WindTrailComponent.h.

References emitterNode_.

Member Data Documentation

◆ ComponentName

const char* Engine::Components::WindTrail::ComponentName = "WindTrail"
staticconstexpr

Definition at line 17 of file WindTrailComponent.h.

◆ emitterNode_

std::shared_ptr<Entities::SceneNode> Engine::Components::WindTrail::emitterNode_
private

Definition at line 28 of file WindTrailComponent.h.

Referenced by getEmitterNode().

◆ IsUnique

bool Engine::Components::WindTrail::IsUnique = true
staticconstexpr

Definition at line 16 of file WindTrailComponent.h.


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