TrinityCore
Loading...
Searching...
No Matches
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
29
class
wdt_MPHD
{
30
union
{
31
uint32
fcc
;
32
char
fcc_txt
[4];
33
};
34
public
:
35
uint32
size
;
36
37
uint32
data1
;
38
uint32
data2
;
39
uint32
data3
;
40
uint32
data4
;
41
uint32
data5
;
42
uint32
data6
;
43
uint32
data7
;
44
uint32
data8
;
45
bool
prepareLoadedData
();
46
};
47
48
class
wdt_MAIN
{
49
union
{
50
uint32
fcc
;
51
char
fcc_txt
[4];
52
};
53
public
:
54
uint32
size
;
55
56
struct
adtData
{
57
uint32
exist
;
58
uint32
data1
;
59
}
adt_list
[64][64];
60
61
bool
prepareLoadedData
();
62
};
63
64
class
WDT_file
:
public
FileLoader
{
65
public
:
66
bool
prepareLoadedData
();
67
68
WDT_file
();
69
~WDT_file
();
70
void
free
();
71
72
wdt_MPHD
*
mphd
;
73
wdt_MAIN
*
main
;
74
};
75
76
#pragma pack(pop)
77
78
#endif
uint32
uint32_t uint32
Definition
Define.h:133
FileLoader
Definition
loadlib.h:48
WDT_file
Definition
wdt.h:64
WDT_file::prepareLoadedData
bool prepareLoadedData()
Definition
wdt.cpp:57
WDT_file::mphd
wdt_MPHD * mphd
Definition
wdt.h:72
WDT_file::~WDT_file
~WDT_file()
Definition
wdt.cpp:45
WDT_file::free
void free()
Definition
wdt.cpp:50
WDT_file::main
wdt_MAIN * main
Definition
wdt.h:73
WDT_file::WDT_file
WDT_file()
Definition
wdt.cpp:39
wdt_MAIN
Definition
wdt.h:48
wdt_MAIN::fcc_txt
char fcc_txt[4]
Definition
wdt.h:51
wdt_MAIN::prepareLoadedData
bool prepareLoadedData()
Definition
wdt.cpp:32
wdt_MAIN::size
uint32 size
Definition
wdt.h:54
wdt_MAIN::adt_list
struct wdt_MAIN::adtData adt_list[64][64]
wdt_MAIN::fcc
uint32 fcc
Definition
wdt.h:50
wdt_MPHD
Definition
wdt.h:29
wdt_MPHD::size
uint32 size
Definition
wdt.h:35
wdt_MPHD::data3
uint32 data3
Definition
wdt.h:39
wdt_MPHD::data4
uint32 data4
Definition
wdt.h:40
wdt_MPHD::data2
uint32 data2
Definition
wdt.h:38
wdt_MPHD::data7
uint32 data7
Definition
wdt.h:43
wdt_MPHD::data5
uint32 data5
Definition
wdt.h:41
wdt_MPHD::data1
uint32 data1
Definition
wdt.h:37
wdt_MPHD::fcc
uint32 fcc
Definition
wdt.h:31
wdt_MPHD::fcc_txt
char fcc_txt[4]
Definition
wdt.h:32
wdt_MPHD::prepareLoadedData
bool prepareLoadedData()
Definition
wdt.cpp:25
wdt_MPHD::data6
uint32 data6
Definition
wdt.h:42
wdt_MPHD::data8
uint32 data8
Definition
wdt.h:44
wdt_MAIN::adtData
Definition
wdt.h:56
wdt_MAIN::adtData::data1
uint32 data1
Definition
wdt.h:58
wdt_MAIN::adtData::exist
uint32 exist
Definition
wdt.h:57
tools
map_extractor
wdt.h
Generated on Sun May 10 2026 02:30:26 for TrinityCore by
1.9.8