#ifndef FS_EFFECTS_H #define FS_EFFECTS_H struct Effect { Effect(uint16_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; uint16_t id; // Changed from uint8_t to uint16_t bool premium; }; class Effects { public: bool reload(); bool loadFromXml(); Effect* getEffectByID(uint16_t id); // Changed from uint8_t to uint16_t Effect* getEffectByName(const std::string& name); Effect* getEffectByClientID(uint16_t clientId); const std::vector& getEffects() const { return effects; } private: std::vector effects; }; #endif