PrismLauncher/launcher/modplatform/legacy_ftb/PackHelpers.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
739 B
C
Raw Normal View History

#pragma once
2018-04-07 21:45:03 +01:00
#include <QList>
#include <QMetaType>
2018-04-07 21:42:01 +01:00
#include <QString>
2018-04-07 21:45:03 +01:00
#include <QStringList>
namespace LegacyFTB {
// Header for structs etc...
enum class PackType { Public, ThirdParty, Private };
struct Modpack {
QString name;
QString description;
QString author;
QStringList oldVersions;
QString currentVersion;
QString mcVersion;
QString mods;
QString logo;
2018-07-15 13:51:05 +01:00
// Technical data
QString dir;
QString file; //<- Url in the xml, but doesn't make much sense
2018-07-15 13:51:05 +01:00
bool bugged = false;
bool broken = false;
2018-07-15 13:51:05 +01:00
PackType type;
QString packCode;
};
typedef QList<Modpack> ModpackList;
} // namespace LegacyFTB
// We need it for the proxy model
Q_DECLARE_METATYPE(LegacyFTB::Modpack)