NOISSUE Bare-bones twitch pack browser
This commit is contained in:
38
application/pages/modplatform/twitch/TwitchData.h
Normal file
38
application/pages/modplatform/twitch/TwitchData.h
Normal file
@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <QList>
|
||||
|
||||
namespace Twitch {
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
Q_DECLARE_METATYPE(Twitch::Modpack)
|
Reference in New Issue
Block a user