|
VEGO-Engine
0.1
|
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. | |
Manages the lifecycle of temporary effects.
| void StatEffectsComponent::addEffect | ( | uint32_t | duration, |
| std::function< void()> | resetFunction ) |
Add a stat effect to the entity.
| duration | The duration of the effect in milliseconds |
| resetFunction | The function to reset the effect, will be called on expiry of duration |