1#ifndef FS_AURAS_H
2#define FS_AURAS_H
3
4struct Aura
5{
6 Aura(uint8_t id, uint16_t clientId, std::string name, int32_t speed, bool premium) :
7 name(std::move(name)), speed(speed), clientId(clientId), id(id), premium(premium) {}
8
9 std::string name;
10 int32_t speed;
11 uint16_t clientId;
12 uint8_t id;
13 bool premium;
14};
15
16class Auras
17{
18 public:
19 bool reload();
20 bool loadFromXml();
21 Aura* getAuraByID(uint8_t id);
22 Aura* getAuraByName(const std::string& name);
23 Aura* getAuraByClientID(uint16_t clientId);
24
25 const std::vector<Aura>& getAuras() const {
26 return auras;
27 }
28
29 private:
30 std::vector<Aura> auras;
31};
32
33#endif