diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-02-27 19:58:40 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-02-27 19:58:40 +0100 |
commit | 17ad1e64f824fba6d8f153191effdb2af7d387c8 (patch) | |
tree | 3c0996cab5cff0dcf3807afe08df66dda3a50ec4 /logic/minecraft/forge/ForgeVersion.h | |
parent | 71e4b147ec3b8c5f3e2a004920ffbc0a3b6e18c8 (diff) | |
download | MultiMC-17ad1e64f824fba6d8f153191effdb2af7d387c8.tar MultiMC-17ad1e64f824fba6d8f153191effdb2af7d387c8.tar.gz MultiMC-17ad1e64f824fba6d8f153191effdb2af7d387c8.tar.lz MultiMC-17ad1e64f824fba6d8f153191effdb2af7d387c8.tar.xz MultiMC-17ad1e64f824fba6d8f153191effdb2af7d387c8.zip |
NOISSUE move files into paths that make more sense
Diffstat (limited to 'logic/minecraft/forge/ForgeVersion.h')
-rw-r--r-- | logic/minecraft/forge/ForgeVersion.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/logic/minecraft/forge/ForgeVersion.h b/logic/minecraft/forge/ForgeVersion.h new file mode 100644 index 00000000..e77d32f1 --- /dev/null +++ b/logic/minecraft/forge/ForgeVersion.h @@ -0,0 +1,42 @@ +#pragma once +#include <QString> +#include <memory> +#include "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(); + + enum + { + Invalid, + Legacy, + Gradle + } type = Invalid; + + bool usesInstaller(); + + int m_buildnr = 0; + QString branch; + QString universal_url; + QString changelog_url; + QString installer_url; + QString jobbuildver; + QString mcver; + QString mcver_sane; + QString universal_filename; + QString installer_filename; + bool is_recommended = false; +}; + +Q_DECLARE_METATYPE(ForgeVersionPtr) |