pollymc/logic/minecraft/JarMod.h
Petr Mrázek 6fd18a5cce GH-1016 print list of mods, coremods and jarmods
Includes a change to jar mods, where they gain an 'originalName' attribute used only for display
2015-05-31 21:50:01 +02:00

17 lines
368 B
C++

#pragma once
#include <QString>
#include <QJsonObject>
#include <memory>
class Jarmod;
typedef std::shared_ptr<Jarmod> JarmodPtr;
class Jarmod
{
public: /* methods */
static JarmodPtr fromJson(const QJsonObject &libObj, const QString &filename,
const QString &originalName);
QJsonObject toJson();
public: /* data */
QString name;
QString originalName;
};