2020-08-24 23:13:43 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ATLPackManifest.h"
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QVector>
|
|
|
|
#include <QMetaType>
|
|
|
|
|
|
|
|
namespace ATLauncher
|
|
|
|
{
|
|
|
|
|
|
|
|
struct IndexedVersion
|
|
|
|
{
|
|
|
|
QString version;
|
|
|
|
QString minecraft;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IndexedPack
|
|
|
|
{
|
|
|
|
int id;
|
|
|
|
int position;
|
|
|
|
QString name;
|
|
|
|
PackType type;
|
|
|
|
QVector<IndexedVersion> versions;
|
|
|
|
bool system;
|
|
|
|
QString description;
|
|
|
|
|
|
|
|
QString safeName;
|
|
|
|
};
|
|
|
|
|
2021-07-25 18:11:59 +01:00
|
|
|
void loadIndexedPack(IndexedPack & m, QJsonObject & obj);
|
2020-08-24 23:13:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(ATLauncher::IndexedPack)
|