TrinityCore
Loading...
Searching...
No Matches
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 TRINITYCORE_EXTRACTOR_DB2_LOAD_INFO_H
19#define TRINITYCORE_EXTRACTOR_DB2_LOAD_INFO_H
20
21#include "DB2FileLoader.h"
22#include "DB2Meta.h"
23
25{
26 static constexpr DB2MetaField MetaFields[5] =
27 {
28 { .Type = FT_FLOAT, .ArraySize = 3, .IsSigned = true },
29 { .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
30 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
31 { .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
32 { .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
33 };
34
35 static constexpr DB2Meta MetaInstance =
36 {
37 .FileDataId = 1294214,
38 .IndexField = -1,
39 .ParentIndexField = -1,
40 .FieldCount = 5,
41 .FileFieldCount = 5,
42 .LayoutHash = 0x8BFD752B,
43 .Fields = MetaFields
44 };
45
46 static constexpr DB2FieldMeta Fields[8] =
47 {
48 { .IsSigned = false, .Type = FT_INT, .Name = "ID" },
49 { .IsSigned = false, .Type = FT_FLOAT, .Name = "OriginX" },
50 { .IsSigned = false, .Type = FT_FLOAT, .Name = "OriginY" },
51 { .IsSigned = false, .Type = FT_FLOAT, .Name = "OriginZ" },
52 { .IsSigned = false, .Type = FT_INT, .Name = "SoundID" },
53 { .IsSigned = false, .Type = FT_FLOAT, .Name = "OriginFacing" },
54 { .IsSigned = false, .Type = FT_INT, .Name = "FileDataID" },
55 { .IsSigned = false, .Type = FT_INT, .Name = "ConversationID" },
56 };
57
58 static constexpr DB2FileLoadInfo Instance{ Fields, 8, & MetaInstance };
59};
60
62{
63 static constexpr DB2MetaField MetaFields[9] =
64 {
65 { .Type = FT_FLOAT, .ArraySize = 6, .IsSigned = true },
66 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
67 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true },
68 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
69 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
70 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
71 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
72 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
73 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false },
74 };
75
76 static constexpr DB2Meta MetaInstance =
77 {
78 .FileDataId = 1266277,
79 .IndexField = -1,
80 .ParentIndexField = -1,
81 .FieldCount = 9,
82 .FileFieldCount = 9,
83 .LayoutHash = 0x16D1DD61,
84 .Fields = MetaFields
85 };
86
87 static constexpr DB2FieldMeta Fields[15] =
88 {
89 { .IsSigned = false, .Type = FT_INT, .Name = "ID" },
90 { .IsSigned = false, .Type = FT_FLOAT, .Name = "GeoBoxMinX" },
91 { .IsSigned = false, .Type = FT_FLOAT, .Name = "GeoBoxMinY" },
92 { .IsSigned = false, .Type = FT_FLOAT, .Name = "GeoBoxMinZ" },
93 { .IsSigned = false, .Type = FT_FLOAT, .Name = "GeoBoxMaxX" },
94 { .IsSigned = false, .Type = FT_FLOAT, .Name = "GeoBoxMaxY" },
95 { .IsSigned = false, .Type = FT_FLOAT, .Name = "GeoBoxMaxZ" },
96 { .IsSigned = true, .Type = FT_INT, .Name = "FileDataID" },
97 { .IsSigned = true, .Type = FT_SHORT, .Name = "ObjectEffectPackageID" },
98 { .IsSigned = false, .Type = FT_FLOAT, .Name = "OverrideLootEffectScale" },
99 { .IsSigned = false, .Type = FT_FLOAT, .Name = "OverrideNameScale" },
100 { .IsSigned = true, .Type = FT_INT, .Name = "AlternateDisplayType" },
101 { .IsSigned = true, .Type = FT_INT, .Name = "ClientCreatureDisplayInfoID" },
102 { .IsSigned = true, .Type = FT_INT, .Name = "ClientItemID" },
103 { .IsSigned = false, .Type = FT_SHORT, .Name = "Unknown1100" },
104 };
105
106 static constexpr DB2FileLoadInfo Instance{ Fields, 15, &MetaInstance };
107};
108
110{
111 static constexpr DB2MetaField MetaFields[2] =
112 {
113 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
114 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true },
115 };
116
117 static constexpr DB2Meta MetaInstance =
118 {
119 .FileDataId = 1132538,
120 .IndexField = -1,
121 .ParentIndexField = -1,
122 .FieldCount = 2,
123 .FileFieldCount = 2,
124 .LayoutHash = 0x98E5D7AA,
125 .Fields = MetaFields
126 };
127
128 static constexpr DB2FieldMeta Fields[3] =
129 {
130 { .IsSigned = false, .Type = FT_INT, .Name = "ID" },
131 { .IsSigned = true, .Type = FT_INT, .Name = "Flags" },
132 { .IsSigned = true, .Type = FT_BYTE, .Name = "LVF" },
133 };
134
135 static constexpr DB2FileLoadInfo Instance{ Fields, 3, &MetaInstance };
136};
137
139{
140 static constexpr DB2MetaField MetaFields[5] =
141 {
142 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
143 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
144 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true },
145 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
146 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
147 };
148
149 static constexpr DB2Meta MetaInstance =
150 {
151 .FileDataId = 1308058,
152 .IndexField = -1,
153 .ParentIndexField = -1,
154 .FieldCount = 5,
155 .FileFieldCount = 5,
156 .LayoutHash = 0xCB0D39E8,
157 .Fields = MetaFields
158 };
159
160 static constexpr DB2FieldMeta Fields[6] =
161 {
162 { false, FT_INT, "ID" },
163 { false, FT_FLOAT, "FlowDirection" },
164 { false, FT_FLOAT, "FlowSpeed" },
165 { true, FT_SHORT, "LiquidTypeID" },
166 { false, FT_BYTE, "Fishable" },
167 { false, FT_BYTE, "Reflection" },
168 };
169
170 static constexpr DB2FileLoadInfo Instance{ Fields, 6, &MetaInstance };
171};
172
174{
175 static constexpr DB2MetaField MetaFields[21] =
176 {
177 { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 1, .IsSigned = true },
178 { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 6, .IsSigned = true },
179 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
180 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
181 { .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
182 { .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
183 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
184 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
185 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
186 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
187 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false },
188 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
189 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
190 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
191 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
192 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
193 { .Type = FT_BYTE, .ArraySize = 6, .IsSigned = false },
194 { .Type = FT_INT, .ArraySize = 3, .IsSigned = true },
195 { .Type = FT_FLOAT, .ArraySize = 38, .IsSigned = true },
196 { .Type = FT_INT, .ArraySize = 4, .IsSigned = false },
197 { .Type = FT_FLOAT, .ArraySize = 4, .IsSigned = true },
198 };
199
200 static constexpr DB2Meta MetaInstance =
201 {
202 .FileDataId = 1371380,
203 .IndexField = -1,
204 .ParentIndexField = -1,
205 .FieldCount = 21,
206 .FileFieldCount = 21,
207 .LayoutHash = 0xD1ECEEC9,
208 .Fields = MetaFields
209 };
210
211 static constexpr DB2FieldMeta Fields[77] =
212 {
213 { .IsSigned = false, .Type = FT_INT, .Name = "ID" },
214 { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Name" },
215 { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Texture1" },
216 { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Texture2" },
217 { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Texture3" },
218 { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Texture4" },
219 { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Texture5" },
220 { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Texture6" },
221 { .IsSigned = true, .Type = FT_INT, .Name = "Flags" },
222 { .IsSigned = false, .Type = FT_BYTE, .Name = "SoundBank" },
223 { .IsSigned = false, .Type = FT_INT, .Name = "SoundID" },
224 { .IsSigned = false, .Type = FT_INT, .Name = "SpellID" },
225 { .IsSigned = false, .Type = FT_FLOAT, .Name = "MaxDarkenDepth" },
226 { .IsSigned = false, .Type = FT_FLOAT, .Name = "FogDarkenIntensity" },
227 { .IsSigned = false, .Type = FT_FLOAT, .Name = "AmbDarkenIntensity" },
228 { .IsSigned = false, .Type = FT_FLOAT, .Name = "DirDarkenIntensity" },
229 { .IsSigned = false, .Type = FT_SHORT, .Name = "LightID" },
230 { .IsSigned = false, .Type = FT_FLOAT, .Name = "ParticleScale" },
231 { .IsSigned = false, .Type = FT_BYTE, .Name = "ParticleMovement" },
232 { .IsSigned = false, .Type = FT_BYTE, .Name = "ParticleTexSlots" },
233 { .IsSigned = false, .Type = FT_BYTE, .Name = "MaterialID" },
234 { .IsSigned = true, .Type = FT_INT, .Name = "MinimapStaticCol" },
235 { .IsSigned = false, .Type = FT_BYTE, .Name = "FrameCountTexture1" },
236 { .IsSigned = false, .Type = FT_BYTE, .Name = "FrameCountTexture2" },
237 { .IsSigned = false, .Type = FT_BYTE, .Name = "FrameCountTexture3" },
238 { .IsSigned = false, .Type = FT_BYTE, .Name = "FrameCountTexture4" },
239 { .IsSigned = false, .Type = FT_BYTE, .Name = "FrameCountTexture5" },
240 { .IsSigned = false, .Type = FT_BYTE, .Name = "FrameCountTexture6" },
241 { .IsSigned = true, .Type = FT_INT, .Name = "Color1" },
242 { .IsSigned = true, .Type = FT_INT, .Name = "Color2" },
243 { .IsSigned = true, .Type = FT_INT, .Name = "Color3" },
244 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float1" },
245 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float2" },
246 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float3" },
247 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float4" },
248 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float5" },
249 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float6" },
250 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float7" },
251 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float8" },
252 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float9" },
253 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float10" },
254 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float11" },
255 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float12" },
256 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float13" },
257 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float14" },
258 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float15" },
259 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float16" },
260 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float17" },
261 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float18" },
262 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float19" },
263 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float20" },
264 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float21" },
265 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float22" },
266 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float23" },
267 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float24" },
268 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float25" },
269 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float26" },
270 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float27" },
271 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float28" },
272 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float29" },
273 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float30" },
274 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float31" },
275 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float32" },
276 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float33" },
277 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float34" },
278 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float35" },
279 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float36" },
280 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float37" },
281 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Float38" },
282 { .IsSigned = false, .Type = FT_INT, .Name = "Int1" },
283 { .IsSigned = false, .Type = FT_INT, .Name = "Int2" },
284 { .IsSigned = false, .Type = FT_INT, .Name = "Int3" },
285 { .IsSigned = false, .Type = FT_INT, .Name = "Int4" },
286 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Coefficient1" },
287 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Coefficient2" },
288 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Coefficient3" },
289 { .IsSigned = false, .Type = FT_FLOAT, .Name = "Coefficient4" },
290 };
291
292 static constexpr DB2FileLoadInfo Instance{ Fields, 77, &MetaInstance };
293};
294
295struct MapLoadInfo
296{
297 static constexpr DB2MetaField MetaFields[25] =
298 {
299 { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 1, .IsSigned = true },
300 { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
301 { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
302 { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
303 { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
304 { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
305 { .Type = FT_FLOAT, .ArraySize = 2, .IsSigned = true },
306 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
307 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true },
308 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
309 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false },
310 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true },
311 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true },
312 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true },
313 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true },
314 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
315 { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true },
316 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true },
317 { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false },
318 { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true },
319 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
320 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
321 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
322 { .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
323 { .Type = FT_INT, .ArraySize = 3, .IsSigned = true },
324 };
325
326 static constexpr DB2Meta MetaInstance =
327 {
328 .FileDataId = 1349477,
329 .IndexField = -1,
330 .ParentIndexField = -1,
331 .FieldCount = 25,
332 .FileFieldCount = 25,
333 .LayoutHash = 0x75863E23,
334 .Fields = MetaFields
335 };
336
337 static constexpr DB2FieldMeta Fields[29] =
338 {
339 { .IsSigned = false, .Type = FT_INT, .Name = "ID" },
340 { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Directory" },
341 { .IsSigned = false, .Type = FT_STRING, .Name = "MapName" },
342 { .IsSigned = false, .Type = FT_STRING, .Name = "MapDescription0" },
343 { .IsSigned = false, .Type = FT_STRING, .Name = "MapDescription1" },
344 { .IsSigned = false, .Type = FT_STRING, .Name = "PvpShortDescription" },
345 { .IsSigned = false, .Type = FT_STRING, .Name = "PvpLongDescription" },
346 { .IsSigned = false, .Type = FT_FLOAT, .Name = "CorpseX" },
347 { .IsSigned = false, .Type = FT_FLOAT, .Name = "CorpseY" },
348 { .IsSigned = false, .Type = FT_BYTE, .Name = "MapType" },
349 { .IsSigned = true, .Type = FT_BYTE, .Name = "InstanceType" },
350 { .IsSigned = false, .Type = FT_BYTE, .Name = "ExpansionID" },
351 { .IsSigned = false, .Type = FT_SHORT, .Name = "AreaTableID" },
352 { .IsSigned = true, .Type = FT_SHORT, .Name = "LoadingScreenID" },
353 { .IsSigned = true, .Type = FT_SHORT, .Name = "TimeOfDayOverride" },
354 { .IsSigned = true, .Type = FT_SHORT, .Name = "ParentMapID" },
355 { .IsSigned = true, .Type = FT_SHORT, .Name = "CosmeticParentMapID" },
356 { .IsSigned = false, .Type = FT_BYTE, .Name = "TimeOffset" },
357 { .IsSigned = false, .Type = FT_FLOAT, .Name = "MinimapIconScale" },
358 { .IsSigned = true, .Type = FT_SHORT, .Name = "CorpseMapID" },
359 { .IsSigned = false, .Type = FT_BYTE, .Name = "MaxPlayers" },
360 { .IsSigned = true, .Type = FT_SHORT, .Name = "WindSettingsID" },
361 { .IsSigned = true, .Type = FT_INT, .Name = "ZmpFileDataID" },
362 { .IsSigned = true, .Type = FT_INT, .Name = "WdtFileDataID" },
363 { .IsSigned = true, .Type = FT_INT, .Name = "NavigationMaxDistance" },
364 { .IsSigned = true, .Type = FT_INT, .Name = "PreloadFileDataID" },
365 { .IsSigned = true, .Type = FT_INT, .Name = "Flags1" },
366 { .IsSigned = true, .Type = FT_INT, .Name = "Flags2" },
367 { .IsSigned = true, .Type = FT_INT, .Name = "Flags3" },
368 };
369
370 static constexpr DB2FileLoadInfo Instance{ Fields, 29, &MetaInstance };
371};
372
373#endif // TRINITYCORE_EXTRACTOR_DB2_LOAD_INFO_H
@ FT_FLOAT
Definition Define.h:162
@ FT_SHORT
Definition Define.h:165
@ FT_STRING
Definition Define.h:160
@ FT_INT
Definition Define.h:163
@ FT_STRING_NOT_LOCALIZED
Definition Define.h:161
@ FT_BYTE
Definition Define.h:164
static constexpr DB2LoadInfo Instance
static constexpr DB2MetaField MetaFields[5]
static constexpr DB2FieldMeta Fields[8]
static constexpr DB2Meta MetaInstance
DBCFormer Type
Definition DB2Meta.h:25
uint32 FileDataId
Definition DB2Meta.h:48
static constexpr DB2MetaField MetaFields[9]
static constexpr DB2LoadInfo Instance
static constexpr DB2Meta MetaInstance
static constexpr DB2FieldMeta Fields[15]
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
static constexpr DB2MetaField MetaFields[21]
static constexpr DB2Meta MetaInstance
static constexpr DB2FieldMeta Fields[77]
static constexpr DB2MetaField MetaFields[25]
static constexpr DB2LoadInfo Instance
static constexpr DB2FieldMeta Fields[29]
static constexpr DB2Meta MetaInstance