VEGO-Engine  0.1
Loading...
Searching...
No Matches
StatEffectsComponent Class Reference
Inheritance diagram for StatEffectsComponent:
[legend]
Collaboration diagram for StatEffectsComponent:
[legend]

Public Member Functions

void init () override
 
void update (uint_fast16_t diffTime) override
 
void addEffect (uint32_t duration, std::function< void()> resetFunction)
 Add a stat effect to the entity.
 

Additional Inherited Members

- Public Attributes inherited from Component
Entityentity
 

Member Function Documentation

◆ addEffect()

void StatEffectsComponent::addEffect ( uint32_t duration,
std::function< void()> resetFunction )

Add a stat effect to the entity.

Parameters
durationThe duration of the effect in milliseconds
resetFunctionThe function to reset the effect, will be called on expiry of duration

◆ init()

void StatEffectsComponent::init ( )
overridevirtual

Reimplemented from Component.

◆ update()

void StatEffectsComponent::update ( uint_fast16_t diffTime)
overridevirtual

Reimplemented from Component.


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