VEGO-Engine
0.1
Loading...
Searching...
No Matches
StatEffectsComponent.h
1
#pragma once
2
#include "Component.h"
3
#include "Constants.h"
4
#include <cstdint>
5
#include <array>
6
7
enum class
Stats
8
{
9
MOVEMENT_SPEED,
10
ATTACK_SPEED
11
};
12
13
class
StatEffectsComponent
:
public
Component
{
14
public
:
15
StatEffectsComponent
() {};
16
~StatEffectsComponent
() {};
17
18
void
init()
override
;
19
void
update()
override
;
20
21
void
modifyStatDur(Stats stat,
int
duration);
22
23
void
modifyStatValue(Stats stat,
int
modifier);
24
25
private
:
26
std::array<int, MAX_STATS> buffs = { 0 };
27
};
Component
Definition
Component.h:6
StatEffectsComponent
Definition
StatEffectsComponent.h:13
include
StatEffectsComponent.h
Generated by
1.10.0