2014-04-23 05:57:40 +05:30
|
|
|
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
#include <memory>
|
|
|
|
#include "logic/BaseVersion.h"
|
|
|
|
|
|
|
|
struct ForgeVersion;
|
|
|
|
typedef std::shared_ptr<ForgeVersion> ForgeVersionPtr;
|
|
|
|
|
|
|
|
struct ForgeVersion : public BaseVersion
|
|
|
|
{
|
|
|
|
virtual QString descriptor() override;
|
|
|
|
virtual QString name() override;
|
|
|
|
virtual QString typeString() const override;
|
|
|
|
virtual bool operator<(BaseVersion &a) override;
|
|
|
|
virtual bool operator>(BaseVersion &a) override;
|
|
|
|
|
|
|
|
QString filename();
|
|
|
|
QString url();
|
|
|
|
|
2014-07-20 02:46:02 +05:30
|
|
|
enum
|
|
|
|
{
|
|
|
|
Invalid,
|
|
|
|
Legacy,
|
|
|
|
Gradle
|
|
|
|
} type = Invalid;
|
|
|
|
|
2014-04-23 05:57:40 +05:30
|
|
|
bool usesInstaller();
|
|
|
|
|
|
|
|
int m_buildnr = 0;
|
2014-06-25 04:24:00 +05:30
|
|
|
QString branch;
|
2014-04-23 05:57:40 +05:30
|
|
|
QString universal_url;
|
|
|
|
QString changelog_url;
|
|
|
|
QString installer_url;
|
|
|
|
QString jobbuildver;
|
|
|
|
QString mcver;
|
2014-06-25 04:24:00 +05:30
|
|
|
QString mcver_sane;
|
2014-04-23 05:57:40 +05:30
|
|
|
QString universal_filename;
|
|
|
|
QString installer_filename;
|
|
|
|
bool is_recommended = false;
|
|
|
|
};
|