![]() |
TrinityCore
|
#include <wdtfile.h>
Classes | |
| struct | ADTCache |
Public Member Functions | |
| WDTFile (uint32 fileDataId, std::string const &description, std::string mapName, bool cache) | |
| ~WDTFile () | |
| bool | init (uint32 mapId) |
| ADTFile * | GetMap (int32 x, int32 y, bool createIfMissing) |
| void | FreeADT (ADTFile *adt) |
Private Attributes | |
| CASCFile | _file |
| WDT::MPHD | _header |
| WDT::MAIN | _adtInfo |
| std::unique_ptr< WDT::MAID > | _adtFileDataIds |
| std::string | _mapName |
| std::vector< std::string > | _wmoNames |
| std::unique_ptr< ADTCache > | _adtCache |
| WDTFile::WDTFile | ( | uint32 | fileDataId, |
| std::string const & | description, | ||
| std::string | mapName, | ||
| bool | cache | ||
| ) |
Definition at line 32 of file wdtfile.cpp.
|
default |
| void WDTFile::FreeADT | ( | ADTFile * | adt | ) |
Definition at line 160 of file wdtfile.cpp.
References _adtCache.
Definition at line 133 of file wdtfile.cpp.
References _adtCache, _adtFileDataIds, _adtInfo, _header, _mapName, WDT::MAIN::Data, WDT::MAIN::SMAreaInfo::Flag, WDT::MPHD::Flags, and Trinity::StringFormat().
| bool WDTFile::init | ( | uint32 | mapId | ) |
Definition at line 40 of file wdtfile.cpp.
References _adtFileDataIds, _adtInfo, _file, _header, _wmoNames, ASSERT, CStringSentinel_T::Checked(), CASCFile::close(), CStringSentinel, MapObject::Extract(), Doodad::ExtractSet(), ExtractSingleWmo(), ADT::MODF::Flags, CASCFile::getPointer(), CASCFile::getPos(), ADT::MODF::Id, CASCFile::isEof(), CASCFile::read(), CASCFile::seek(), CASCFile::seekRelative(), Trinity::StringFormat(), and szWorkDirWmo.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |