-
Notifications
You must be signed in to change notification settings - Fork 2
/
dstdatastructure.h
58 lines (48 loc) · 1.09 KB
/
dstdatastructure.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
#ifndef DSTDATASTRUCTURE
#define DSTDATASTRUCTURE
#include <QString>
#include <vector>
struct properties{
properties(){}
properties(QString g, QString n, QString s) : group(g), name(n), settings(s){}
QString group;
QString name;
QString settings;
};
struct mods_configuration{
QString name;
QString label;
QString default_settings;
QString settings;
QString new_settings;
QStringList option_names;
QStringList options;
};
struct mods_properties{
bool isEnabled;
QString id;
QString name;
QString description;
QString author;
QString version;
QString forumthread;
QString api_version;
bool client_only_mod;
bool dst_compatible;
bool all_clients_require_mod;
QString icon_atlas;
QString icon;
std::vector<mods_configuration> conf;
};
struct DSTSettings{
QString world_name;
std::vector<properties> ini;
std::vector<properties> pro;
std::vector<std::vector<QString>> pro_items;
std::vector<QString> used_mods;
};
enum{
DST_WORLD = 0,
DST_CAVE = 1
};
#endif // DSTDATASTRUCTURE