TrinityCore
wdt.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 WDT_H
19#define WDT_H
20#include "loadlib.h"
21
22//**************************************************************************************
23// WDT file class and structures
24//**************************************************************************************
25#define WDT_MAP_SIZE 64
26
27#pragma pack(push, 1)
28
30{
31 union
32 {
34 char fcc_txt[4];
35 };
36public:
38
47};
48
50{
51 union
52 {
54 char fcc_txt[4];
55 };
56public:
58
59 struct adtData
60 {
63 } adt_list[64][64];
64};
65
67{
68 union
69 {
71 char fcc_txt[4];
72 };
73public:
75
76 struct
77 {
78 uint32 rootADT; // FileDataID of mapname_xx_yy.adt
79 uint32 obj0ADT; // FileDataID of mapname_xx_yy_obj0.adt
80 uint32 obj1ADT; // FileDataID of mapname_xx_yy_obj1.adt
81 uint32 tex0ADT; // FileDataID of mapname_xx_yy_tex0.adt
82 uint32 lodADT; // FileDataID of mapname_xx_yy_lod.adt
83 uint32 mapTexture; // FileDataID of mapname_xx_yy.blp
84 uint32 mapTextureN; // FileDataID of mapname_xx_yy_n.blp
85 uint32 minimapTexture; // FileDataID of mapxx_yy.blp
86 } adt_files[64][64];
87};
88
89#pragma pack(pop)
90
91#endif
uint32_t uint32
Definition: Define.h:142
Definition: wdt.h:67
uint32 rootADT
Definition: wdt.h:78
uint32 tex0ADT
Definition: wdt.h:81
uint32 obj0ADT
Definition: wdt.h:79
char fcc_txt[4]
Definition: wdt.h:71
uint32 fcc
Definition: wdt.h:70
uint32 lodADT
Definition: wdt.h:82
uint32 mapTexture
Definition: wdt.h:83
uint32 size
Definition: wdt.h:74
uint32 mapTextureN
Definition: wdt.h:84
uint32 minimapTexture
Definition: wdt.h:85
struct wdt_MAID::@374 adt_files[64][64]
uint32 obj1ADT
Definition: wdt.h:80
Definition: wdt.h:50
char fcc_txt[4]
Definition: wdt.h:54
uint32 size
Definition: wdt.h:57
struct wdt_MAIN::adtData adt_list[64][64]
uint32 fcc
Definition: wdt.h:53
Definition: wdt.h:30
uint32 size
Definition: wdt.h:37
uint32 flags
Definition: wdt.h:39
uint32 mpvFileDataID
Definition: wdt.h:43
uint32 occFileDataID
Definition: wdt.h:41
uint32 fogsFileDataID
Definition: wdt.h:42
uint32 texFileDataID
Definition: wdt.h:44
uint32 fcc
Definition: wdt.h:33
uint32 pd4FileDataID
Definition: wdt.h:46
char fcc_txt[4]
Definition: wdt.h:34
uint32 lgtFileDataID
Definition: wdt.h:40
uint32 wdlFileDataID
Definition: wdt.h:45
uint32 data1
Definition: wdt.h:62
uint32 flag
Definition: wdt.h:61