TrinityCore
WDTFile Class Reference

#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)
 
ADTFileGetMap (int32 x, int32 y)
 
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
 

Detailed Description

Definition at line 70 of file wdtfile.h.

Constructor & Destructor Documentation

◆ WDTFile()

WDTFile::WDTFile ( uint32  fileDataId,
std::string const &  description,
std::string  mapName,
bool  cache 
)

Definition at line 28 of file wdtfile.cpp.

◆ ~WDTFile()

WDTFile::~WDTFile ( )
default

Member Function Documentation

◆ FreeADT()

void WDTFile::FreeADT ( ADTFile adt)

Definition at line 165 of file wdtfile.cpp.

+ Here is the caller graph for this function:

◆ GetMap()

ADTFile * WDTFile::GetMap ( int32  x,
int32  y 
)

Definition at line 141 of file wdtfile.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init()

bool WDTFile::init ( uint32  mapId)

Definition at line 44 of file wdtfile.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _adtCache

std::unique_ptr<ADTCache> WDTFile::_adtCache
private

Definition at line 90 of file wdtfile.h.

◆ _adtFileDataIds

std::unique_ptr<WDT::MAID> WDTFile::_adtFileDataIds
private

Definition at line 83 of file wdtfile.h.

◆ _adtInfo

WDT::MAIN WDTFile::_adtInfo
private

Definition at line 82 of file wdtfile.h.

◆ _file

CASCFile WDTFile::_file
private

Definition at line 80 of file wdtfile.h.

◆ _header

WDT::MPHD WDTFile::_header
private

Definition at line 81 of file wdtfile.h.

◆ _mapName

std::string WDTFile::_mapName
private

Definition at line 84 of file wdtfile.h.

◆ _wmoNames

std::vector<std::string> WDTFile::_wmoNames
private

Definition at line 85 of file wdtfile.h.


The documentation for this class was generated from the following files: