TrinityCore
ExtractorDB2LoadInfo.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef ExtractorDB2LoadInfo_h__
19#define ExtractorDB2LoadInfo_h__
20
21#include "DB2FileLoader.h"
22#include "DB2Meta.h"
23
25{
26 static constexpr DB2MetaField MetaFields[5] =
27 {
28 { FT_FLOAT, 3, true },
29 { FT_INT, 1, false },
30 { FT_FLOAT, 1, true },
31 { FT_INT, 1, false },
32 { FT_INT, 1, false },
33 };
34
35 static constexpr DB2Meta MetaInstance{ 1294214, -1, 5, 5, 0x4B3DF171, MetaFields, -1 };
36
37 static constexpr DB2FieldMeta Fields[8] =
38 {
39 { false, FT_INT, "ID" },
40 { false, FT_FLOAT, "OriginX" },
41 { false, FT_FLOAT, "OriginY" },
42 { false, FT_FLOAT, "OriginZ" },
43 { false, FT_INT, "SoundID" },
44 { false, FT_FLOAT, "OriginFacing" },
45 { false, FT_INT, "FileDataID" },
46 { false, FT_INT, "ConversationID" },
47 };
48
49 static constexpr DB2FileLoadInfo Instance{ Fields, 8, & MetaInstance };
50};
51
53{
54 static constexpr DB2MetaField MetaFields[8] =
55 {
56 { FT_FLOAT, 6, true },
57 { FT_INT, 1, true },
58 { FT_SHORT, 1, true },
59 { FT_FLOAT, 1, true },
60 { FT_FLOAT, 1, true },
61 { FT_INT, 1, true },
62 { FT_INT, 1, true },
63 { FT_INT, 1, true },
64 };
65
66 static constexpr DB2Meta MetaInstance{ 1266277, -1, 8, 8, 0x7F774625, MetaFields, -1 };
67
68 static constexpr DB2FieldMeta Fields[14] =
69 {
70 { false, FT_INT, "ID" },
71 { false, FT_FLOAT, "GeoBoxMinX" },
72 { false, FT_FLOAT, "GeoBoxMinY" },
73 { false, FT_FLOAT, "GeoBoxMinZ" },
74 { false, FT_FLOAT, "GeoBoxMaxX" },
75 { false, FT_FLOAT, "GeoBoxMaxY" },
76 { false, FT_FLOAT, "GeoBoxMaxZ" },
77 { true, FT_INT, "FileDataID" },
78 { true, FT_SHORT, "ObjectEffectPackageID" },
79 { false, FT_FLOAT, "OverrideLootEffectScale" },
80 { false, FT_FLOAT, "OverrideNameScale" },
81 { true, FT_INT, "AlternateDisplayType" },
82 { true, FT_INT, "ClientCreatureDisplayInfoID" },
83 { true, FT_INT, "ClientItemID" },
84 };
85
86 static constexpr DB2FileLoadInfo Instance{ Fields, 14, &MetaInstance };
87};
88
90{
91 static constexpr DB2MetaField MetaFields[2] =
92 {
93 { FT_BYTE, 1, true },
94 { FT_BYTE, 1, true },
95 };
96
97 static constexpr DB2Meta MetaInstance{ 1132538, -1, 2, 2, 0x2CFFEA40, MetaFields, -1 };
98
99 static constexpr DB2FieldMeta Fields[3] =
100 {
101 { false, FT_INT, "ID" },
102 { true, FT_BYTE, "Flags" },
103 { true, FT_BYTE, "LVF" },
104 };
105
106 static constexpr DB2FileLoadInfo Instance{ Fields, 3, &MetaInstance };
107};
108
110{
111 static constexpr DB2MetaField MetaFields[5] =
112 {
113 { FT_FLOAT, 1, true },
114 { FT_FLOAT, 1, true },
115 { FT_SHORT, 1, true },
116 { FT_BYTE, 1, false },
117 { FT_BYTE, 1, false },
118 };
119
120 static constexpr DB2Meta MetaInstance{ 1308058, -1, 5, 5, 0x6CAEB8A1, MetaFields, -1 };
121
122 static constexpr DB2FieldMeta Fields[6] =
123 {
124 { false, FT_INT, "ID" },
125 { false, FT_FLOAT, "FlowDirection" },
126 { false, FT_FLOAT, "FlowSpeed" },
127 { true, FT_SHORT, "LiquidTypeID" },
128 { false, FT_BYTE, "Fishable" },
129 { false, FT_BYTE, "Reflection" },
130 };
131
132 static constexpr DB2FileLoadInfo Instance{ Fields, 3, & MetaInstance };
133};
134
136{
137 static constexpr DB2MetaField MetaFields[21] =
138 {
139 { FT_STRING_NOT_LOCALIZED, 1, true },
140 { FT_STRING_NOT_LOCALIZED, 6, true },
141 { FT_SHORT, 1, false },
142 { FT_BYTE, 1, false },
143 { FT_INT, 1, false },
144 { FT_INT, 1, false },
145 { FT_FLOAT, 1, true },
146 { FT_FLOAT, 1, true },
147 { FT_FLOAT, 1, true },
148 { FT_FLOAT, 1, true },
149 { FT_SHORT, 1, false },
150 { FT_FLOAT, 1, true },
151 { FT_BYTE, 1, false },
152 { FT_BYTE, 1, false },
153 { FT_BYTE, 1, false },
154 { FT_INT, 1, true },
155 { FT_BYTE, 6, false },
156 { FT_INT, 2, true },
157 { FT_FLOAT, 18, true },
158 { FT_INT, 4, false },
159 { FT_FLOAT, 4, true },
160 };
161
162 static constexpr DB2Meta MetaInstance{ 1371380, -1, 21, 21, 0xAFFFC9E0, MetaFields, -1 };
163
164 static constexpr DB2FieldMeta Fields[56] =
165 {
166 { false, FT_INT, "ID" },
167 { false, FT_STRING_NOT_LOCALIZED, "Name" },
168 { false, FT_STRING_NOT_LOCALIZED, "Texture1" },
169 { false, FT_STRING_NOT_LOCALIZED, "Texture2" },
170 { false, FT_STRING_NOT_LOCALIZED, "Texture3" },
171 { false, FT_STRING_NOT_LOCALIZED, "Texture4" },
172 { false, FT_STRING_NOT_LOCALIZED, "Texture5" },
173 { false, FT_STRING_NOT_LOCALIZED, "Texture6" },
174 { false, FT_SHORT, "Flags" },
175 { false, FT_BYTE, "SoundBank" },
176 { false, FT_INT, "SoundID" },
177 { false, FT_INT, "SpellID" },
178 { false, FT_FLOAT, "MaxDarkenDepth" },
179 { false, FT_FLOAT, "FogDarkenIntensity" },
180 { false, FT_FLOAT, "AmbDarkenIntensity" },
181 { false, FT_FLOAT, "DirDarkenIntensity" },
182 { false, FT_SHORT, "LightID" },
183 { false, FT_FLOAT, "ParticleScale" },
184 { false, FT_BYTE, "ParticleMovement" },
185 { false, FT_BYTE, "ParticleTexSlots" },
186 { false, FT_BYTE, "MaterialID" },
187 { true, FT_INT, "MinimapStaticCol" },
188 { false, FT_BYTE, "FrameCountTexture1" },
189 { false, FT_BYTE, "FrameCountTexture2" },
190 { false, FT_BYTE, "FrameCountTexture3" },
191 { false, FT_BYTE, "FrameCountTexture4" },
192 { false, FT_BYTE, "FrameCountTexture5" },
193 { false, FT_BYTE, "FrameCountTexture6" },
194 { true, FT_INT, "Color1" },
195 { true, FT_INT, "Color2" },
196 { false, FT_FLOAT, "Float1" },
197 { false, FT_FLOAT, "Float2" },
198 { false, FT_FLOAT, "Float3" },
199 { false, FT_FLOAT, "Float4" },
200 { false, FT_FLOAT, "Float5" },
201 { false, FT_FLOAT, "Float6" },
202 { false, FT_FLOAT, "Float7" },
203 { false, FT_FLOAT, "Float8" },
204 { false, FT_FLOAT, "Float9" },
205 { false, FT_FLOAT, "Float10" },
206 { false, FT_FLOAT, "Float11" },
207 { false, FT_FLOAT, "Float12" },
208 { false, FT_FLOAT, "Float13" },
209 { false, FT_FLOAT, "Float14" },
210 { false, FT_FLOAT, "Float15" },
211 { false, FT_FLOAT, "Float16" },
212 { false, FT_FLOAT, "Float17" },
213 { false, FT_FLOAT, "Float18" },
214 { false, FT_INT, "Int1" },
215 { false, FT_INT, "Int2" },
216 { false, FT_INT, "Int3" },
217 { false, FT_INT, "Int4" },
218 { false, FT_FLOAT, "Coefficient1" },
219 { false, FT_FLOAT, "Coefficient2" },
220 { false, FT_FLOAT, "Coefficient3" },
221 { false, FT_FLOAT, "Coefficient4" },
222 };
223
224 static constexpr DB2FileLoadInfo Instance{ Fields, 56, &MetaInstance };
225};
226
227struct MapLoadInfo
228{
229 static constexpr DB2MetaField MetaFields[24] =
230 {
231 { FT_STRING_NOT_LOCALIZED, 1, true },
232 { FT_STRING, 1, true },
233 { FT_STRING, 1, true },
234 { FT_STRING, 1, true },
235 { FT_STRING, 1, true },
236 { FT_STRING, 1, true },
237 { FT_FLOAT, 2, true },
238 { FT_BYTE, 1, false },
239 { FT_BYTE, 1, true },
240 { FT_BYTE, 1, false },
241 { FT_SHORT, 1, false },
242 { FT_SHORT, 1, true },
243 { FT_SHORT, 1, true },
244 { FT_SHORT, 1, true },
245 { FT_SHORT, 1, true },
246 { FT_BYTE, 1, false },
247 { FT_FLOAT, 1, true },
248 { FT_SHORT, 1, true },
249 { FT_BYTE, 1, false },
250 { FT_SHORT, 1, true },
251 { FT_INT, 1, true },
252 { FT_INT, 1, true },
253 { FT_INT, 1, true },
254 { FT_INT, 3, true },
255 };
256
257 static constexpr DB2Meta MetaInstance{ 1349477, -1, 24, 24, 0x15542FE8, MetaFields, -1 };
258
259 static constexpr DB2FieldMeta Fields[28] =
260 {
261 { false, FT_INT, "ID" },
262 { false, FT_STRING_NOT_LOCALIZED, "Directory" },
263 { false, FT_STRING, "MapName" },
264 { false, FT_STRING, "MapDescription0" },
265 { false, FT_STRING, "MapDescription1" },
266 { false, FT_STRING, "PvpShortDescription" },
267 { false, FT_STRING, "PvpLongDescription" },
268 { false, FT_FLOAT, "CorpseX" },
269 { false, FT_FLOAT, "CorpseY" },
270 { false, FT_BYTE, "MapType" },
271 { true, FT_BYTE, "InstanceType" },
272 { false, FT_BYTE, "ExpansionID" },
273 { false, FT_SHORT, "AreaTableID" },
274 { true, FT_SHORT, "LoadingScreenID" },
275 { true, FT_SHORT, "TimeOfDayOverride" },
276 { true, FT_SHORT, "ParentMapID" },
277 { true, FT_SHORT, "CosmeticParentMapID" },
278 { false, FT_BYTE, "TimeOffset" },
279 { false, FT_FLOAT, "MinimapIconScale" },
280 { true, FT_SHORT, "CorpseMapID" },
281 { false, FT_BYTE, "MaxPlayers" },
282 { true, FT_SHORT, "WindSettingsID" },
283 { true, FT_INT, "ZmpFileDataID" },
284 { true, FT_INT, "WdtFileDataID" },
285 { true, FT_INT, "NavigationMaxDistance" },
286 { true, FT_INT, "Flags1" },
287 { true, FT_INT, "Flags2" },
288 { true, FT_INT, "Flags3" },
289 };
290
291 static constexpr DB2FileLoadInfo Instance{ Fields, 28, &MetaInstance };
292};
293
294#endif // ExtractorDB2LoadInfo_h__
@ FT_FLOAT
Definition: Define.h:150
@ FT_SHORT
Definition: Define.h:153
@ FT_STRING
Definition: Define.h:148
@ FT_INT
Definition: Define.h:151
@ FT_STRING_NOT_LOCALIZED
Definition: Define.h:149
@ FT_BYTE
Definition: Define.h:152
static constexpr DB2LoadInfo Instance
Definition: DB2LoadInfo.h:1236
static constexpr DB2MetaField MetaFields[5]
static constexpr DB2FieldMeta Fields[8]
Definition: DB2LoadInfo.h:1224
static constexpr DB2Meta MetaInstance
static constexpr DB2MetaField MetaFields[8]
static constexpr DB2LoadInfo Instance
Definition: DB2LoadInfo.h:1963
static constexpr DB2FieldMeta Fields[14]
Definition: DB2LoadInfo.h:1945
static constexpr DB2Meta MetaInstance
static constexpr DB2MetaField MetaFields[2]
static constexpr DB2FieldMeta Fields[3]
static constexpr DB2FileLoadInfo Instance
static constexpr DB2Meta MetaInstance
static constexpr DB2FileLoadInfo Instance
static constexpr DB2Meta MetaInstance
static constexpr DB2MetaField MetaFields[5]
static constexpr DB2FieldMeta Fields[6]
static constexpr DB2LoadInfo Instance
Definition: DB2LoadInfo.h:3585
static constexpr DB2MetaField MetaFields[21]
static constexpr DB2FieldMeta Fields[56]
Definition: DB2LoadInfo.h:3525
static constexpr DB2Meta MetaInstance
static constexpr DB2LoadInfo Instance
Definition: DB2LoadInfo.h:3676
static constexpr DB2MetaField MetaFields[24]
static constexpr DB2Meta MetaInstance
static constexpr DB2FieldMeta Fields[28]
Definition: DB2LoadInfo.h:3644