VEGO-Engine  0.1
Loading...
Searching...
No Matches
StatEffectsComponent Class Reference

Manages the lifecycle of temporary effects. More...

#include <StatEffectsComponent.h>

Public Member Functions

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

Detailed Description

Manages the lifecycle of temporary effects.

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

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