lolautoaccept/include/runestyle.h

33 lines
469 B
C
Raw Permalink Normal View History

2022-07-10 15:56:09 +02:00
#pragma once
#include <cstdint>
#include <string>
2023-05-01 22:36:11 +02:00
#include <vector>
2022-07-10 15:56:09 +02:00
// fwd.
class QJsonObject;
2023-05-01 22:36:11 +02:00
struct RuneStyleSlot {
std::vector<int> perks;
QString type;
RuneStyleSlot();
RuneStyleSlot(const QJsonObject& json);
};
2022-07-10 15:56:09 +02:00
struct RuneStyle {
uint32_t id;
2023-05-31 22:22:23 +02:00
QString name;
QString iconPath;
QString tooltip;
2022-07-10 15:56:09 +02:00
2023-05-01 22:36:11 +02:00
std::vector<int> allowedSubStyles;
QString idName;
std::vector<RuneStyleSlot> runeSlots;
2022-07-10 15:56:09 +02:00
RuneStyle();
explicit RuneStyle(const QJsonObject& json);
};