2016-02-27 21:02:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <minecraft/VersionFile.h>
|
|
|
|
#include <minecraft/MinecraftProfile.h>
|
2016-03-07 01:01:28 +00:00
|
|
|
#include <minecraft/Library.h>
|
2016-02-27 21:02:56 +00:00
|
|
|
#include <QJsonDocument>
|
|
|
|
|
2016-02-28 18:01:54 +00:00
|
|
|
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 01:01:28 +00:00
|
|
|
static LibraryPtr libraryFromJson(const QJsonObject &libObj, const QString &filename);
|
|
|
|
static QJsonObject libraryToJson(Library *library);
|
2016-02-28 18:01:54 +00:00
|
|
|
|
|
|
|
// jar mods
|
|
|
|
static JarmodPtr jarModFromJson(const QJsonObject &libObj, const QString &filename, const QString &originalName);
|
|
|
|
static QJsonObject jarModtoJson(Jarmod * jarmod);
|
|
|
|
};
|