2020-03-31 01:13:19 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QList>
|
|
|
|
|
2021-03-23 23:59:43 +00:00
|
|
|
namespace Flame {
|
2020-03-31 01:13:19 +00:00
|
|
|
|
|
|
|
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-23 23:59:43 +00:00
|
|
|
Q_DECLARE_METATYPE(Flame::Modpack)
|