mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-24 12:04:28 +02:00
33 lines
608 B
C++
33 lines
608 B
C++
#ifndef FS_AURAS_H
|
|
#define FS_AURAS_H
|
|
|
|
struct Aura
|
|
{
|
|
Aura(uint8_t id, uint16_t clientId, std::string name, int32_t speed, bool premium) :
|
|
name(std::move(name)), speed(speed), clientId(clientId), id(id), premium(premium) {}
|
|
|
|
std::string name;
|
|
int32_t speed;
|
|
uint16_t clientId;
|
|
uint8_t id;
|
|
bool premium;
|
|
};
|
|
|
|
class Auras
|
|
{
|
|
public:
|
|
bool reload();
|
|
bool loadFromXml();
|
|
Aura* getAuraByID(uint8_t id);
|
|
Aura* getAuraByName(const std::string& name);
|
|
Aura* getAuraByClientID(uint16_t clientId);
|
|
|
|
const std::vector<Aura>& getAuras() const {
|
|
return auras;
|
|
}
|
|
|
|
private:
|
|
std::vector<Aura> auras;
|
|
};
|
|
|
|
#endif |