![]() |
TrinityCore
|
#include <loadlib.h>
Inheritance diagram for FileLoader:Public Member Functions | |
| virtual bool | prepareLoadedData () |
| uint8 * | GetData () |
| uint32 | GetDataSize () |
| FileLoader () | |
| ~FileLoader () | |
| bool | loadFile (std::string const &fileName, bool log=true) |
| virtual void | free () |
| virtual bool | prepareLoadedData () |
| uint8 * | GetData () |
| uint32 | GetDataSize () |
| FileLoader () | |
| ~FileLoader () | |
| bool | loadFile (char *filename, bool log=true) |
| virtual void | free () |
Public Attributes | |
| file_MVER * | version |
Private Attributes | |
| uint8 * | data |
| uint32 | data_size |
| FileLoader::FileLoader | ( | ) |
Definition at line 28 of file loadlib.cpp.
| FileLoader::~FileLoader | ( | ) |
Definition at line 35 of file loadlib.cpp.
References free().
| FileLoader::FileLoader | ( | ) |
| FileLoader::~FileLoader | ( | ) |
|
virtual |
Reimplemented in ADT_file, and WDT_file.
Definition at line 76 of file loadlib.cpp.
References data, data_size, and version.
Referenced by ADT_file::free(), WDT_file::free(), loadFile(), and ~FileLoader().
|
inline |
Definition at line 53 of file loadlib.h.
References data.
Referenced by ADT_file::prepareLoadedData().
|
inline |
|
inline |
| bool FileLoader::loadFile | ( | char * | filename, |
| bool | log = true |
||
| ) |
| bool FileLoader::loadFile | ( | std::string const & | fileName, |
| bool | log = true |
||
| ) |
Definition at line 40 of file loadlib.cpp.
References MPQFile::close(), data, data_size, free(), MPQFile::getSize(), MPQFile::isEof(), prepareLoadedData(), and MPQFile::read().
Referenced by ConvertADT(), and ExtractMapsFromMpq().
|
virtual |
Reimplemented in ADT_file, and WDT_file.
Definition at line 65 of file loadlib.cpp.
References data, u_map_fcc::fcc, file_MVER::fcc, FILE_FORMAT_VERSION, MverMagic, file_MVER::ver, and version.
Referenced by loadFile(), ADT_file::prepareLoadedData(), and WDT_file::prepareLoadedData().
|
private |
Definition at line 49 of file loadlib.h.
Referenced by FileLoader(), free(), GetData(), loadFile(), and prepareLoadedData().
|
private |
Definition at line 50 of file loadlib.h.
Referenced by FileLoader(), free(), GetDataSize(), and loadFile().
| file_MVER * FileLoader::version |
Definition at line 56 of file loadlib.h.
Referenced by FileLoader(), free(), ADT_file::prepareLoadedData(), prepareLoadedData(), and WDT_file::prepareLoadedData().