2016-02-28 02:32:56 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <minecraft/VersionFile.h>
|
2016-03-07 06:31:28 +05:30
|
|
|
#include <minecraft/Library.h>
|
2016-02-28 02:32:56 +05:30
|
|
|
#include <QJsonDocument>
|
|
|
|
|
2016-03-03 06:10:12 +05:30
|
|
|
#include "multimc_logic_export.h"
|
|
|
|
|
|
|
|
class MULTIMC_LOGIC_EXPORT MojangVersionFormat
|
2016-02-28 23:31:54 +05:30
|
|
|
{
|
|
|
|
public:
|
|
|
|
// version files / profile patches
|
|
|
|
static VersionFilePtr versionFileFromJson(const QJsonDocument &doc, const QString &filename);
|
|
|
|
static QJsonDocument profilePatchToJson(const ProfilePatchPtr &patch);
|
2016-03-07 06:31:28 +05:30
|
|
|
|
|
|
|
// libraries
|
|
|
|
static LibraryPtr libraryFromJson(const QJsonObject &libObj, const QString &filename);
|
|
|
|
static QJsonObject libraryToJson(Library *library);
|
2016-02-28 23:31:54 +05:30
|
|
|
};
|