VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::LifetimeComponent Struct Reference

Destroys the entity after a set amount of time. Useful for temporary effects. More...

#include <UtilityComponents.hpp>

Public Attributes

float lifespan = 5.0f
float timeElapsed = 0.0f

Detailed Description

Destroys the entity after a set amount of time. Useful for temporary effects.

Definition at line 11 of file UtilityComponents.hpp.

Member Data Documentation

◆ lifespan

float vex::LifetimeComponent::lifespan = 5.0f

Definition at line 12 of file UtilityComponents.hpp.

◆ timeElapsed

float vex::LifetimeComponent::timeElapsed = 0.0f

Definition at line 13 of file UtilityComponents.hpp.


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