TrinityCore
Loading...
Searching...
No Matches
vmapexport.cpp File Reference
#include "adtfile.h"
#include "Banner.h"
#include "dbcfile.h"
#include "StringFormat.h"
#include "vmapexport.h"
#include "Locales.h"
#include "Util.h"
#include "wdtfile.h"
#include "wmo.h"
#include "mpq_libmpq.h"
#include <boost/filesystem/directory.hpp>
#include <boost/filesystem/operations.hpp>
#include <list>
#include <map>
#include <unordered_map>
#include <vector>
#include <cstdio>
#include "WheatyExceptionReport.h"
+ Include dependency graph for vmapexport.cpp:

Go to the source code of this file.

Classes

struct  map_id
 

Functions

uint32 GenerateUniqueObjectId (uint32 clientId, uint16 clientDoodadId)
 
bool FileExists (char const *file)
 
void strToLower (char *str)
 
bool ExtractSingleWmo (std::string &fname)
 
void ParsMapFiles ()
 
bool processArgv (int argc, char **argv, const char *versionString)
 
int main (int argc, char **argv)
 
 INIT_CRASH_HANDLER ()
 

Variables

std::vector< map_idmap_ids
 
uint32 map_count
 
char output_path [128] ="."
 
char input_path [1024] ="."
 
bool hasInputPathParam = false
 
bool preciseVectorData = false
 
std::unordered_map< std::string, WMODoodadDataWmoDoodads
 
static constexpr std::array< std::string_view, 12 > MpqLocaleNames = { "enGB", "enUS", "deDE", "esES", "frFR", "koKR", "zhCN", "zhTW", "enCN", "enTW", "esMX", "ruRU" }
 
char const * szWorkDirWmo = "./Buildings"
 
std::map< std::pair< uint32, uint16 >, uint32uniqueObjectIds
 

Function Documentation

◆ ExtractSingleWmo()

bool ExtractSingleWmo ( std::string &  fname)

Definition at line 85 of file vmapexport.cpp.

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

◆ FileExists()

bool FileExists ( char const *  file)

Definition at line 66 of file vmapexport.cpp.

+ Here is the caller graph for this function:

◆ GenerateUniqueObjectId()

uint32 GenerateUniqueObjectId ( uint32  clientId,
uint16  clientDoodadId 
)

Definition at line 59 of file vmapexport.cpp.

+ Here is the caller graph for this function:

◆ INIT_CRASH_HANDLER()

INIT_CRASH_HANDLER ( )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 275 of file vmapexport.cpp.

+ Here is the call graph for this function:

◆ ParsMapFiles()

void ParsMapFiles ( )

Definition at line 183 of file vmapexport.cpp.

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

◆ processArgv()

bool processArgv ( int  argc,
char **  argv,
const char *  versionString 
)

Definition at line 211 of file vmapexport.cpp.

+ Here is the caller graph for this function:

◆ strToLower()

void strToLower ( char *  str)

Definition at line 76 of file vmapexport.cpp.

Variable Documentation

◆ hasInputPathParam

bool hasInputPathParam = false

Definition at line 48 of file vmapexport.cpp.

◆ input_path

char input_path[1024] ="."

Definition at line 47 of file vmapexport.cpp.

◆ map_count

uint32 map_count

Definition at line 45 of file vmapexport.cpp.

◆ map_ids

std::vector<map_id> map_ids

Definition at line 44 of file vmapexport.cpp.

◆ MpqLocaleNames

constexpr std::array<std::string_view, 12> MpqLocaleNames = { "enGB", "enUS", "deDE", "esES", "frFR", "koKR", "zhCN", "zhTW", "enCN", "enTW", "esMX", "ruRU" }
staticconstexpr

Definition at line 53 of file vmapexport.cpp.

◆ output_path

char output_path[128] ="."

Definition at line 46 of file vmapexport.cpp.

◆ preciseVectorData

bool preciseVectorData = false

Definition at line 49 of file vmapexport.cpp.

◆ szWorkDirWmo

char const* szWorkDirWmo = "./Buildings"

Definition at line 55 of file vmapexport.cpp.

◆ uniqueObjectIds

std::map<std::pair<uint32, uint16>, uint32> uniqueObjectIds

Definition at line 57 of file vmapexport.cpp.

◆ WmoDoodads

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

Definition at line 50 of file vmapexport.cpp.