PrismLauncher/api/logic/minecraft/flame/PackManifest.h
2017-04-22 18:51:04 +02:00

47 lines
640 B
C++

#pragma once
#include <QString>
#include <QVector>
namespace Flame
{
struct File
{
int projectId = 0;
int fileId = 0;
bool required = true;
// our
bool resolved = false;
QString fileName;
QString url;
};
struct Modloader
{
QString id;
bool primary = false;
};
struct Minecraft
{
QString version;
QString libraries;
QVector<Flame::Modloader> modLoaders;
};
struct Manifest
{
QString manifestType;
int manifestVersion = 0;
Flame::Minecraft minecraft;
QString name;
QString version;
QString author;
QVector<Flame::File> files;
QString overrides;
};
void loadManifest(Flame::Manifest & m, const QString &filepath);
}