TrinityCore
vmapexport.h File Reference
#include "Define.h"
#include <string>
#include <unordered_map>
+ Include dependency graph for vmapexport.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ModelInstanceFlags { MOD_HAS_BOUND = 1 << 0 , MOD_PARENT_SPAWN = 1 << 1 }
 
enum class  ModelFlags : uint32 { None = 0x0 , IsM2 = 0x1 }
 

Functions

uint32 GenerateUniqueObjectId (uint32 clientId, uint16 clientDoodadId, bool isWmo)
 
bool FileExists (const char *file)
 
bool ExtractSingleWmo (std::string &fname)
 
bool ExtractSingleModel (std::string &fname)
 
void ExtractGameobjectModels ()
 

Variables

const char * szWorkDirWmo
 
std::unordered_map< std::string, WMODoodadDataWmoDoodads
 

Enumeration Type Documentation

◆ ModelFlags

enum class ModelFlags : uint32
strong
Enumerator
None 
IsM2 

Definition at line 33 of file vmapexport.h.

◆ ModelInstanceFlags

Enumerator
MOD_HAS_BOUND 
MOD_PARENT_SPAWN 

Definition at line 26 of file vmapexport.h.

Function Documentation

◆ ExtractGameobjectModels()

void ExtractGameobjectModels ( )

Definition at line 77 of file gameobject_extract.cpp.

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

◆ ExtractSingleModel()

bool ExtractSingleModel ( std::string &  fname)

Definition at line 30 of file gameobject_extract.cpp.

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

◆ ExtractSingleWmo()

bool ExtractSingleWmo ( std::string &  fname)

Definition at line 188 of file vmapexport.cpp.

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

◆ FileExists()

bool FileExists ( const char *  file)

Definition at line 178 of file vmapexport.cpp.

+ Here is the caller graph for this function:

◆ GenerateUniqueObjectId()

uint32 GenerateUniqueObjectId ( uint32  clientId,
uint16  clientDoodadId,
bool  isWmo 
)

Definition at line 170 of file vmapexport.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ szWorkDirWmo

const char* szWorkDirWmo
extern

Definition at line 74 of file vmapexport.cpp.

◆ WmoDoodads

std::unordered_map<std::string, WMODoodadData> WmoDoodads
extern

Definition at line 70 of file vmapexport.cpp.