Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::UniqueTestComponent Class Reference

#include <TestComponent.h>

Inheritance diagram for EngineCore::UniqueTestComponent:
Collaboration diagram for EngineCore::UniqueTestComponent:

Public Member Functions

 UniqueTestComponent (Scene *scene)
Public Member Functions inherited from EngineCore::LogicComponent
 LogicComponent (Scene *owningScene)
virtual ~LogicComponent ()=default
virtual void beginPlay ()
 Called when the component is added to the scene or the game starts.
virtual void tick (double deltaTime)
 Called every frame if ticking is enabled.
virtual void endPlay ()
 Called when the component is removed or the game ends.
bool canTick () const
 Checks if the component is currently set to tick.
void setCanTick (bool enable)
 Enables or disables ticking for this component.
EntitygetOwningEntity () const
 Gets the entity this component belongs to.

Static Public Attributes

static constexpr bool IsUnique = true
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.

Additional Inherited Members

Protected Member Functions inherited from EngineCore::LogicComponent
ScenegetScene () const
 Gets the scene this component belongs to.
SceneManagergetSceneManager () const
 Helper to get the SceneManager from the owning scene.

Detailed Description

Definition at line 24 of file TestComponent.h.

Constructor & Destructor Documentation

◆ UniqueTestComponent()

EngineCore::UniqueTestComponent::UniqueTestComponent ( Scene * scene)
explicit

Definition at line 27 of file TestComponent.cpp.

References EngineCore::LogicComponent::LogicComponent(), and EngineCore::LogicComponent::scene.

Here is the call graph for this function:

Member Data Documentation

◆ IsUnique

bool EngineCore::UniqueTestComponent::IsUnique = true
staticconstexpr

Definition at line 26 of file TestComponent.h.


The documentation for this class was generated from the following files:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Component/TestComponent.h
  • /home/magerbeton/Documents/gl3-vulkan/Engine/src/Engine/Component/TestComponent.cpp