2016-02-28 02:32:56 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <minecraft/VersionFile.h>
|
|
|
|
#include <minecraft/MinecraftProfile.h>
|
2016-03-07 06:31:28 +05:30
|
|
|
#include <minecraft/Library.h>
|
2016-02-28 02:32:56 +05:30
|
|
|
#include <QJsonDocument>
|
|
|
|
|
2016-02-28 23:31:54 +05:30
|
|
|
class OneSixVersionFormat
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// version files / profile patches
|
|
|
|
static VersionFilePtr versionFileFromJson(const QJsonDocument &doc, const QString &filename, const bool requireOrder);
|
|
|
|
static QJsonDocument profilePatchToJson(const ProfilePatchPtr &patch, bool saveOrder);
|
|
|
|
|
|
|
|
// libraries
|
2016-03-07 06:31:28 +05:30
|
|
|
static LibraryPtr libraryFromJson(const QJsonObject &libObj, const QString &filename);
|
|
|
|
static QJsonObject libraryToJson(Library *library);
|
2016-02-28 23:31:54 +05:30
|
|
|
|
|
|
|
// jar mods
|
|
|
|
static JarmodPtr jarModFromJson(const QJsonObject &libObj, const QString &filename, const QString &originalName);
|
|
|
|
static QJsonObject jarModtoJson(Jarmod * jarmod);
|
|
|
|
};
|