-
Notifications
You must be signed in to change notification settings - Fork 0
/
Minecraft.h
71 lines (66 loc) · 2.07 KB
/
Minecraft.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#pragma once
#include <QString>
#include <QUrl>
#include <QDir>
#include "utils.h"
using namespace Sparrow::utils;
namespace Sparrow {
enum class __declspec(dllexport) versionType { RELEASE, SNAPSHOT, OLD_ALPHA, OLD_BETA };
class __declspec(dllexport) MinecraftVersion {
public:
QString version;
versionType type;
fileInfo assetIndex;
QString assetVersion;
fileInfo clientJar;
QVector<fileInfo> libs;
QString mainClass;
MinecraftVersion(void);
MinecraftVersion(const QString& version,
const enum versionType& type,
const fileInfo& assetIndex,
const QString& assetVersion,
const fileInfo& clientJar,
const QVector<fileInfo>& libs,
const QString& mainClass);
bool operator<(const MinecraftVersion& b);
bool operator<(const QString& b);
bool operator==(const MinecraftVersion& b);
bool operator==(const QString& b);
bool operator>(const MinecraftVersion& b);
bool operator>(const QString& b);
bool operator<=(const MinecraftVersion& b);
bool operator<=(const QString& b);
bool operator>=(const MinecraftVersion& b);
bool operator>=(const QString& b);
};
class __declspec(dllexport) MinecraftDirectory {
public:
QDir rootDir;
QDir versionsDir;
QDir savesDir;
QDir resourcepacksDir;
QDir librariesDir;
QDir crash_reportsDir;
QDir assetsDir;
MinecraftDirectory(void);
MinecraftDirectory(const QString& rootDir);
};
class __declspec(dllexport) Minecraft
{
public:
MinecraftVersion version;
MinecraftDirectory root;
QDir path;
QString clientJarFile;
QString jsonFile;
Minecraft(void);
Minecraft(
const MinecraftVersion& version,
const MinecraftDirectory& root,
const QDir& path,
const QString& clientJarFile,
const QString& jsonFile);
Minecraft(const QDir& dir);
};
}