Lodestone.Minecraft.Java  1.2.6
Loading...
Searching...
No Matches
Version.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 10/25/25 using zPc-i2.
3//
4#ifndef LODESTONE_JAVA_VERSION_H
5#define LODESTONE_JAVA_VERSION_H
6
7#include <vector>
8#include <cstdint>
9
10// NOLINTBEGIN(readability-identifier-naming)
11//shut up
13
14#define X_TO_ENUM(name) name,
15
16#define ENUM_PRE_CLASSIC_STAGE(X) \
17 X(rd131655) \
18 X(rd132211) \
19 X(rd132328) \
20 X(rd20090515) \
21 X(rd160052) \
22 X(rd161348)
23
24#define ENUM_CLASSIC_STAGE(X) \
25 X(c0_0_2a) \
26 X(c0_0_3a) \
27 X(c0_0_9a) \
28 X(c0_0_10a) \
29 X(c0_0_11a) \
30 X(c0_0_12a) \
31 X(c0_0_12a_01) \
32 X(c0_0_12a_02) \
33 X(c0_0_12a_03) \
34 X(c0_0_13a) \
35 X(c0_0_13a_03) \
36 X(c0_0_14a) \
37 X(c0_0_14a_01) \
38 X(c0_0_14a_03) \
39 X(c0_0_14a_04) \
40 X(c0_0_14a_05) \
41 X(c0_0_14a_06) \
42 X(c0_0_14a_07) \
43 X(c0_0_14a_08) \
44 X(c0_0_15a) \
45 X(c0_0_15a_mp2) /*mp test 2*/ \
46 X(c0_0_15a_mp3) /*mp test 3*/ \
47 X(c0_0_15a_mp4) /*mp test 4*/ \
48 X(c0_0_15a_mp5) /*mp test 5*/ \
49 X(c0_0_15a_mp6) /*mp test 6*/ \
50 X(c0_0_15a_mp7) /*mp test 7*/ \
51 X(c0_0_15a_mp8) /*mp test 8*/ \
52 X(c0_0_15a_01) \
53 X(c0_0_15a_02) \
54 X(c0_0_15a_03) \
55 X(c0_0_16a) \
56 X(c0_0_16a_01) \
57 X(c0_0_16a_02) \
58 X(c0_0_17a) \
59 X(c0_0_18a) \
60 X(c0_0_18a_01) \
61 X(c0_0_18a_02) \
62 X(c0_0_19a) \
63 X(c0_0_19a_01) /*TODO glass No longer semi transparent.*/ \
64 X(c0_0_19a_02) \
65 X(c0_0_19a_03) \
66 X(c0_0_19a_04) \
67 X(c0_0_19a_05) \
68 X(c0_0_19a_06) \
69 X(c0_0_20a) \
70 X(c0_0_20a_01) \
71 X(c0_0_20a_02) \
72 X(c0_0_21a) \
73 X(c0_0_21a_01) \
74 X(c0_0_22a) \
75 X(c0_0_22a_01) \
76 X(c0_0_22a_02) \
77 X(c0_0_22a_03) \
78 X(c0_0_22a_04) \
79 X(c0_0_22a_05) \
80 X(c0_0_23a) \
81 X(c0_0_23a_01) \
82 X(c0_24st) /*survival test*/ \
83 X(c0_24st_01) \
84 X(c0_24st_02) \
85 X(c0_24st_03) \
86 X(c0_25st) \
87 X(c0_25st_02) \
88 X(c0_25st_03) \
89 X(c0_25st_04) \
90 X(c0_25st_05) \
91 X(c0_26st) \
92 X(c0_27st) \
93 X(c0_28) \
94 X(c0_28_01) \
95 X(c0_29) \
96 X(c0_29_01) \
97 X(c0_29_02) \
98 X(c0_30) /*survival*/ \
99 X(c0_30_01) /*creative*/ \
100 X(c0_30_CPE) /*specifically for classic protocol extensions, which adds additional blocks not seen normally, TODO we should move this when classicextensions module comes. */
101
102#define ENUM_INDEV_STAGE(X) \
103 X(in20091223_1457) \
104 X(in20100109_1939) \
105 X(in20100114) \
106 X(in20100122_2251) \
107 X(in20100124_2119) \
108 X(in20100128_2200) \
109 X(in20100129_2332) \
110 X(in20100206_2034) \
111 X(in20100219)
112
113#define ENUM_INFDEV_STAGE(X) \
114 X(inf20100607) \
115 X(inf20100618) \
116 X(inf20100624) \
117 X(inf20100625_1917) \
118 X(inf20100629)
119
120#define ENUM_ALPHA_STAGE(X) \
121 X(a1_0_1) \
122 X(a1_0_4) \
123 X(a1_0_5) \
124 X(a1_0_6) \
125 X(a1_0_11) \
126 X(a1_0_14) \
127 X(a1_0_17) \
128 X(a1_2_0)
129
130#define ENUM_BETA_STAGE(X) \
131 X(b1_1) \
132 X(b1_2) \
133 X(b1_3) /*FORMAT CHANGE*/ \
134 X(b1_4) \
135 X(b1_5) \
136 X(b1_6) \
137 X(b1_7) \
138 X(b1_8) \
139 X(b1_9_pr1) \
140 X(b1_9_pr2) \
141 X(b1_9_pr3) \
142 X(b1_9_pr4) \
143 X(b1_9_pr6)
144
145#define ENUM_RELEASE_STAGE(X) \
146 X(r1_2_1)
147
148#define ENUM_FLATTENED_STAGE(X)
149#define ENUM_GAMMA_STAGE(X)
150
162
163#undef X_TO_ENUM
164#define X_TO_ENUM(name) name = static_cast<int>(Version::name),
165
166#define X_TO_ENUM_CLASS(clazz, name) \
167 enum class clazz : std::uint32_t { \
168 name(X_TO_ENUM) \
169 } \
170
179 X_TO_ENUM_CLASS(GammaStage, ENUM_GAMMA_STAGE);//when they switched to yy.m version numbering
180
181#undef X_TO_ENUM
182
183#define X_TO_STRING(name) #name,
195
196#undef X_TO_STRING
197}
198
199// NOLINTEND(readability-identifier-naming)
200
201#endif // LODESTONE_VERSION_H
#define ENUM_BETA_STAGE(X)
Definition Version.h:130
#define ENUM_CLASSIC_STAGE(X)
Definition Version.h:24
#define X_TO_ENUM(name)
Definition Version.h:14
#define ENUM_PRE_CLASSIC_STAGE(X)
Definition Version.h:16
#define X_TO_ENUM_CLASS(clazz, name)
Definition Version.h:166
#define ENUM_INDEV_STAGE(X)
Definition Version.h:102
#define ENUM_RELEASE_STAGE(X)
Definition Version.h:145
#define X_TO_STRING(name)
Definition Version.h:183
#define ENUM_ALPHA_STAGE(X)
Definition Version.h:120
#define ENUM_INFDEV_STAGE(X)
Definition Version.h:113
#define ENUM_GAMMA_STAGE(X)
Definition Version.h:149
#define ENUM_FLATTENED_STAGE(X)
Definition Version.h:148
Definition AlphaLevelDataIo.cpp:12
IndevStage
Definition Version.h:173
ReleaseStage
Definition Version.h:177
BetaStage
Definition Version.h:176
Version
Definition Version.h:151
InfdevStage
Definition Version.h:174
GammaStage
Definition Version.h:179
PreClassicStage
Definition Version.h:171
AlphaStage
Definition Version.h:175
FlattenedStage
Definition Version.h:178
ClassicStage
Definition Version.h:172
const std::vector< std::string > AllVersions
Definition Version.h:184