diff options
Diffstat (limited to 'api/logic/minecraft/onesix/OneSixVersionFormat.h')
-rw-r--r-- | api/logic/minecraft/onesix/OneSixVersionFormat.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/api/logic/minecraft/onesix/OneSixVersionFormat.h b/api/logic/minecraft/onesix/OneSixVersionFormat.h new file mode 100644 index 00000000..5696e79e --- /dev/null +++ b/api/logic/minecraft/onesix/OneSixVersionFormat.h @@ -0,0 +1,22 @@ +#pragma once + +#include <minecraft/VersionFile.h> +#include <minecraft/MinecraftProfile.h> +#include <minecraft/Library.h> +#include <QJsonDocument> + +class OneSixVersionFormat +{ +public: + // version files / profile patches + static VersionFilePtr versionFileFromJson(const QJsonDocument &doc, const QString &filename, const bool requireOrder); + static QJsonDocument versionFileToJson(const VersionFilePtr &patch, bool saveOrder); + + // libraries + static LibraryPtr libraryFromJson(const QJsonObject &libObj, const QString &filename); + static QJsonObject libraryToJson(Library *library); + + // jar mods + static JarmodPtr jarModFromJson(const QJsonObject &libObj, const QString &filename, const QString &originalName); + static QJsonObject jarModtoJson(Jarmod * jarmod); +}; |