chore: only dump leaderboard values for t6 when they are relevant for the column

This commit is contained in:
Jan
2024-05-19 13:07:04 +02:00
parent 4fe852b162
commit 2a1ec18f6a
4 changed files with 47 additions and 26 deletions

View File

@ -55,18 +55,19 @@ namespace T6
public:
std::string name;
int colId;
int dwColIndex;
bool hidden;
std::string statName;
std::optional<int> dwColIndex;
std::optional<bool> hidden;
std::optional<std::string> statName;
LbColType type;
int precision;
LbAggType agg;
std::string localization;
int uiCalColX;
int uiCalColY;
std::optional<int> precision;
LbAggType aggregationFunction;
std::optional<std::string> localization;
std::optional<int> uiCalColX;
std::optional<int> uiCalColY;
};
NLOHMANN_DEFINE_TYPE_EXTENSION(JsonColumnDef, name, colId, dwColIndex, hidden, statName, type, precision, agg, localization, uiCalColX, uiCalColY);
NLOHMANN_DEFINE_TYPE_EXTENSION(
JsonColumnDef, name, colId, dwColIndex, hidden, statName, type, precision, aggregationFunction, localization, uiCalColX, uiCalColY);
class JsonLeaderboardDef
{