AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ADT_file Class Reference

#include "adt.h"

Inheritance diagram for ADT_file:
FileLoader

Public Member Functions

bool prepareLoadedData () override
 
 ADT_file ()
 
 ~ADT_file ()
 
void free () override
 
- Public Member Functions inherited from FileLoader
virtual bool prepareLoadedData ()
 
uint8GetData ()
 
uint32 GetDataSize ()
 
 FileLoader ()
 
 ~FileLoader ()
 
bool loadFile (std::string const &filename, bool log=true)
 
virtual void free ()
 
virtual bool prepareLoadedData ()
 
uint8GetData ()
 
uint32 GetDataSize ()
 
 FileLoader ()
 
 ~FileLoader ()
 
bool loadFile (std::string const &filename, bool log=true)
 
virtual void free ()
 

Public Attributes

adt_MHDRa_grid
 
- Public Attributes inherited from FileLoader
file_MVERversion
 

Detailed Description

Constructor & Destructor Documentation

◆ ADT_file()

ADT_file::ADT_file ( )
47{
48 a_grid = nullptr;
49}
adt_MHDR * a_grid
Definition: adt.h:403

References a_grid.

◆ ~ADT_file()

ADT_file::~ADT_file ( )
52{
53 free();
54}
void free() override
Definition: adt.cpp:56

References free().

Member Function Documentation

◆ free()

void ADT_file::free ( )
overridevirtual

Reimplemented from FileLoader.

57{
58 a_grid = nullptr;
60}
virtual void free()
Definition: loadlib.cpp:76

References a_grid, and FileLoader::free().

Referenced by ~ADT_file().

◆ prepareLoadedData()

bool ADT_file::prepareLoadedData ( )
overridevirtual

Reimplemented from FileLoader.

66{
67 // Check parent
69 return false;
70
71 // Check and prepare MHDR
72 a_grid = (adt_MHDR*)(GetData() + 8 + version->size);
74 return false;
75
76 return true;
77}
Definition: adt.h:350
bool prepareLoadedData()
Definition: adt.cpp:79
uint32 size
Definition: loadlib.h:43
file_MVER * version
Definition: loadlib.h:56
virtual bool prepareLoadedData()
Definition: loadlib.cpp:65
uint8 * GetData()
Definition: loadlib.h:53

References a_grid, FileLoader::GetData(), adt_MHDR::prepareLoadedData(), FileLoader::prepareLoadedData(), file_MVER::size, and FileLoader::version.

Member Data Documentation

◆ a_grid

adt_MHDR* ADT_file::a_grid