diff options
Diffstat (limited to 'api/logic/minecraft/curse/PackManifest.h')
-rw-r--r-- | api/logic/minecraft/curse/PackManifest.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/api/logic/minecraft/curse/PackManifest.h b/api/logic/minecraft/curse/PackManifest.h new file mode 100644 index 00000000..8b9602a4 --- /dev/null +++ b/api/logic/minecraft/curse/PackManifest.h @@ -0,0 +1,45 @@ +#pragma once + +#include <QString> +#include <QVector> + +namespace Curse +{ +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; + QVector<Curse::Modloader> modLoaders; +}; + +struct Manifest +{ + QString manifestType; + int manifestVersion = 0; + Curse::Minecraft minecraft; + QString name; + QString version; + QString author; + QVector<Curse::File> files; + QString overrides; +}; + +void loadManifest(Curse::Manifest & m, const QString &filepath); +} |