TrinityCore
ADTFile Class Reference

#include <adtfile.h>

Public Member Functions

 ADTFile (std::string const &filename, bool cache)
 
 ADTFile (uint32 fileDataId, std::string const &description, bool cache)
 
 ~ADTFile ()
 
bool init (uint32 map_num, uint32 originalMapId)
 
bool initFromCache (uint32 map_num, uint32 originalMapId)
 

Public Attributes

std::vector< std::string > WmoInstanceNames
 
std::vector< std::string > ModelInstanceNames
 

Private Attributes

CASCFile _file
 
bool cacheable
 
std::vector< ADTOutputCache > * dirfileCache
 

Detailed Description

Definition at line 59 of file adtfile.h.

Constructor & Destructor Documentation

◆ ADTFile() [1/2]

ADTFile::ADTFile ( std::string const &  filename,
bool  cache 
)

Definition at line 87 of file adtfile.cpp.

◆ ADTFile() [2/2]

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

Definition at line 93 of file adtfile.cpp.

◆ ~ADTFile()

ADTFile::~ADTFile ( )

Definition at line 263 of file adtfile.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ init()

bool ADTFile::init ( uint32  map_num,
uint32  originalMapId 
)

Definition at line 99 of file adtfile.cpp.

+ Here is the call graph for this function:

◆ initFromCache()

bool ADTFile::initFromCache ( uint32  map_num,
uint32  originalMapId 
)

Definition at line 236 of file adtfile.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _file

CASCFile ADTFile::_file
private

Definition at line 62 of file adtfile.h.

◆ cacheable

bool ADTFile::cacheable
private

Definition at line 63 of file adtfile.h.

◆ dirfileCache

std::vector<ADTOutputCache>* ADTFile::dirfileCache
private

Definition at line 64 of file adtfile.h.

◆ ModelInstanceNames

std::vector<std::string> ADTFile::ModelInstanceNames

Definition at line 70 of file adtfile.h.

◆ WmoInstanceNames

std::vector<std::string> ADTFile::WmoInstanceNames

Definition at line 69 of file adtfile.h.


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