#include <wdtfile.h>
WDTFile::WDTFile |
( |
char * |
file_name, |
|
|
char * |
file_name1 |
|
) |
| |
37 filename.append(file_name1,strlen(file_name1));
int gnWMO
Definition: wdtfile.h:41
MPQFile WDT
Definition: wdtfile.h:33
HANDLE CascStorage
Definition: System.cpp:69
std::string filename
Definition: wdtfile.h:34
WDTFile::~WDTFile |
( |
void |
| ) |
|
void close()
Definition: mpqfile.cpp:81
MPQFile WDT
Definition: wdtfile.h:33
ADTFile * WDTFile::GetMap |
( |
int |
x, |
|
|
int |
z |
|
) |
| |
121 if(!(
x>=0 &&
z >= 0 &&
x<64 &&
z<64))
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: adtfile.h:110
std::string sprintf(CStringRef format, ArgList args)
Definition: format.h:3096
G3D::int16 z
Definition: Vector3int16.h:46
G3D::int16 x
Definition: Vector2int16.h:37
std::string filename
Definition: wdtfile.h:34
bool WDTFile::init |
( |
char * |
map_id, |
|
|
unsigned int |
mapID |
|
) |
| |
51 std::string dirname = std::string(
szWorkDirWmo) +
"/dir_bin";
53 dirfile = fopen(dirname.c_str(),
"ab");
56 printf(
"Can't open dirfile!'%s'\n", dirname.c_str());
70 if (!strcmp(fourcc,
"MAIN"))
73 if (!strcmp(fourcc,
"MWMO"))
78 char *buf =
new char[size];
81 while (p < buf + size)
85 p = p + strlen(p) + 1;
91 else if (!strcmp(fourcc,
"MODF"))
96 gnWMO = (int)size / 64;
98 for (
int i = 0; i <
gnWMO; ++i)
void flipcc(char *fcc)
Definition: mpqfile.h:57
size_t getPos()
Definition: mpqfile.h:48
int gnWMO
Definition: wdtfile.h:41
std::vector< std::string > gWmoInstansName
Definition: wdtfile.h:40
void close()
Definition: mpqfile.cpp:81
bool isEof()
Definition: mpqfile.h:51
char * wdtGetPlainName(char *FileName)
Definition: wdtfile.cpp:24
void FixNameCase(char *name, size_t len)
Definition: adtfile.cpp:47
uint32_t uint32
Definition: Define.h:150
MPQFile WDT
Definition: wdtfile.h:33
size_t read(void *dest, size_t bytes)
Definition: mpqfile.cpp:52
const char * szWorkDirWmo
Definition: vmapexport.cpp:81
void seek(int offset)
Definition: mpqfile.cpp:69
void printf(BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
Definition: format.h:3083
std::string WDTFile::filename |
|
private |
std::vector<std::string> WDTFile::gWmoInstansName |
The documentation for this class was generated from the following files: