2020-03-31 06:43:19 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QList>
|
|
|
|
|
2021-03-24 05:29:43 +05:30
|
|
|
namespace Flame {
|
2020-03-31 06:43:19 +05:30
|
|
|
|
|
|
|
struct ModpackAuthor {
|
|
|
|
QString name;
|
|
|
|
QString url;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ModpackFile {
|
|
|
|
int addonId;
|
|
|
|
int fileId;
|
|
|
|
QString version;
|
|
|
|
QString mcVersion;
|
|
|
|
QString downloadUrl;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Modpack
|
|
|
|
{
|
|
|
|
bool broken = true;
|
|
|
|
int addonId = 0;
|
|
|
|
|
|
|
|
QString name;
|
|
|
|
QString description;
|
|
|
|
QList<ModpackAuthor> authors;
|
|
|
|
QString mcVersion;
|
|
|
|
QString logoName;
|
|
|
|
QString logoUrl;
|
|
|
|
QString websiteUrl;
|
|
|
|
|
|
|
|
ModpackFile latestFile;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-03-24 05:29:43 +05:30
|
|
|
Q_DECLARE_METATYPE(Flame::Modpack)
|