diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-22 18:51:04 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-22 18:51:04 +0200 |
commit | 8ace5fa91d7abaadc00758e1f6eeb692f424a8ab (patch) | |
tree | 7ac7adf409e941b85bd92c362667fbfcf9ab8b86 /api/logic/minecraft/flame/PackManifest.h | |
parent | 30863a88abbbac05aff914326557882a2f09f4e4 (diff) | |
download | MultiMC-8ace5fa91d7abaadc00758e1f6eeb692f424a8ab.tar MultiMC-8ace5fa91d7abaadc00758e1f6eeb692f424a8ab.tar.gz MultiMC-8ace5fa91d7abaadc00758e1f6eeb692f424a8ab.tar.lz MultiMC-8ace5fa91d7abaadc00758e1f6eeb692f424a8ab.tar.xz MultiMC-8ace5fa91d7abaadc00758e1f6eeb692f424a8ab.zip |
NOISSUE Add flame.
Diffstat (limited to 'api/logic/minecraft/flame/PackManifest.h')
-rw-r--r-- | api/logic/minecraft/flame/PackManifest.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/api/logic/minecraft/flame/PackManifest.h b/api/logic/minecraft/flame/PackManifest.h new file mode 100644 index 00000000..ae91bffb --- /dev/null +++ b/api/logic/minecraft/flame/PackManifest.h @@ -0,0 +1,46 @@ +#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); +} |