2022-03-03 03:05:59 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QList>
|
|
|
|
#include <QMetaType>
|
|
|
|
#include <QString>
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QVector>
|
|
|
|
|
|
|
|
namespace ModPlatform {
|
|
|
|
|
|
|
|
struct ModpackAuthor {
|
|
|
|
QString name;
|
|
|
|
QString url;
|
|
|
|
};
|
|
|
|
|
2022-05-24 18:08:48 +05:30
|
|
|
struct DonationData {
|
|
|
|
QString id;
|
|
|
|
QString platform;
|
|
|
|
QString url;
|
|
|
|
};
|
|
|
|
|
2022-03-03 03:05:59 +05:30
|
|
|
struct IndexedVersion {
|
|
|
|
QVariant addonId;
|
|
|
|
QVariant fileId;
|
|
|
|
QString version;
|
|
|
|
QVector<QString> mcVersion;
|
|
|
|
QString downloadUrl;
|
|
|
|
QString date;
|
|
|
|
QString fileName;
|
|
|
|
QVector<QString> loaders = {};
|
|
|
|
};
|
|
|
|
|
2022-05-24 18:08:48 +05:30
|
|
|
struct ExtraPackData {
|
|
|
|
QList<DonationData> donate;
|
|
|
|
};
|
|
|
|
|
2022-03-03 03:05:59 +05:30
|
|
|
struct IndexedPack {
|
|
|
|
QVariant addonId;
|
|
|
|
QString name;
|
|
|
|
QString description;
|
|
|
|
QList<ModpackAuthor> authors;
|
|
|
|
QString logoName;
|
|
|
|
QString logoUrl;
|
|
|
|
QString websiteUrl;
|
|
|
|
|
|
|
|
bool versionsLoaded = false;
|
|
|
|
QVector<IndexedVersion> versions;
|
2022-05-24 18:08:48 +05:30
|
|
|
|
|
|
|
// Don't load by default, since some modplatform don't have that info
|
|
|
|
bool extraDataLoaded = true;
|
|
|
|
ExtraPackData extraData;
|
2022-03-03 03:05:59 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ModPlatform
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(ModPlatform::IndexedPack)
|