TrinityCore
Loading...
Searching...
No Matches
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 64 of file adtfile.cpp.

References cacheable, and dirfileCache.

◆ ADTFile() [2/2]

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

Definition at line 70 of file adtfile.cpp.

References cacheable, and dirfileCache.

◆ ~ADTFile()

ADTFile::~ADTFile ( )

Definition at line 224 of file adtfile.cpp.

References _file, CASCFile::close(), and dirfileCache.

Member Function Documentation

◆ init()

◆ initFromCache()

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

Definition at line 199 of file adtfile.cpp.

References dirfileCache, flags, MOD_PARENT_SPAWN, Trinity::StringFormat(), and szWorkDirWmo.

Referenced by init().

Member Data Documentation

◆ _file

CASCFile ADTFile::_file
private

Definition at line 62 of file adtfile.h.

Referenced by init(), and ~ADTFile().

◆ cacheable

bool ADTFile::cacheable
private

Definition at line 63 of file adtfile.h.

Referenced by ADTFile(), ADTFile(), and init().

◆ dirfileCache

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

Definition at line 64 of file adtfile.h.

Referenced by ADTFile(), ADTFile(), init(), initFromCache(), and ~ADTFile().

◆ ModelInstanceNames

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

Definition at line 70 of file adtfile.h.

Referenced by init().

◆ WmoInstanceNames

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

Definition at line 69 of file adtfile.h.

Referenced by init().


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