AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include <cerrno>
#include <cstdio>
#include <list>
#include <map>
#include <sys/stat.h>
#include <vector>
#include "vmapexport.h"
#include "adtfile.h"
#include "dbcfile.h"
#include "mpq_libmpq04.h"
#include "wdtfile.h"
#include "wmo.h"
Go to the source code of this file.
Classes | |
struct | map_id |
Macros | |
#define | _CRT_SECURE_NO_DEPRECATE |
#define | MPQ_BLOCK_SIZE 0x1000 |
Functions | |
uint32 | GenerateUniqueObjectId (uint32 clientId, uint16 clientDoodadId) |
bool | FileExists (const char *file) |
void | strToLower (char *str) |
bool | ExtractSingleWmo (std::string &fname) |
void | ParsMapFiles () |
void | getGamePath () |
bool | scan_patches (char *scanmatch, std::vector< std::string > &pArchiveNames) |
bool | fillArchiveNameVector (std::vector< std::string > &pArchiveNames) |
bool | processArgv (int argc, char **argv, const char *versionString) |
int | main (int argc, char **argv) |
Variables | |
ArchiveSet | gOpenArchives |
std::vector< map_id > | map_ids |
uint32 | map_count |
char | output_path [128] = "." |
char | input_path [1024] = "." |
bool | hasInputPathParam = false |
bool | preciseVectorData = false |
std::unordered_map< std::string, WMODoodadData > | WmoDoodads |
char const * | szWorkDirWmo = "./Buildings" |
std::map< std::pair< uint32, uint16 >, uint32 > | uniqueObjectIds |
#define _CRT_SECURE_NO_DEPRECATE |
#define MPQ_BLOCK_SIZE 0x1000 |
bool ExtractSingleWmo | ( | std::string & | fname | ) |
References WMOGroup::ConvertToVMAPGroupWmo(), WMORoot::ConvertToVMAPRootWmo(), WMORoot::DoodadData, WMOGroup::DoodadReferences, FileExists(), fixname2(), fixnamen(), GetPlainName(), WMORoot::nGroups, WMORoot::open(), WMOGroup::open(), preciseVectorData, WMODoodadData::References, WMODoodadData::Spawns, szWorkDirWmo, WMORoot::ValidDoodadNames, and WmoDoodads.
Referenced by ExtractGameobjectModels(), ADTFile::init(), and WDTFile::init().
bool FileExists | ( | const char * | file | ) |
Referenced by ExtractSingleWmo().
bool fillArchiveNameVector | ( | std::vector< std::string > & | pArchiveNames | ) |
References getGamePath(), hasInputPathParam, input_path, and scan_patches().
Referenced by main().
References uniqueObjectIds.
Referenced by Doodad::Extract(), MapObject::Extract(), and Doodad::ExtractSet().
void getGamePath | ( | ) |
References input_path.
Referenced by fillArchiveNameVector().
int main | ( | int | argc, |
char ** | argv | ||
) |
References ExtractGameobjectModels(), fillArchiveNameVector(), DBCFile::getRecord(), DBCFile::getRecordCount(), DBCFile::Record::getString(), DBCFile::Record::getUInt(), gOpenArchives, input_path, map_count, map_ids, DBCFile::open(), ParsMapFiles(), preciseVectorData, processArgv(), and szWorkDirWmo.
void ParsMapFiles | ( | ) |
References WDTFile::GetMap(), WDTFile::init(), map_count, and map_ids.
Referenced by main().
bool processArgv | ( | int | argc, |
char ** | argv, | ||
const char * | versionString | ||
) |
References hasInputPathParam, input_path, and preciseVectorData.
Referenced by main().
bool scan_patches | ( | char * | scanmatch, |
std::vector< std::string > & | pArchiveNames | ||
) |
Referenced by fillArchiveNameVector().
void strToLower | ( | char * | str | ) |
|
extern |
Referenced by MPQArchive::isOpened(), main(), MPQArchive::MPQArchive(), and MPQFile::MPQFile().
bool hasInputPathParam = false |
Referenced by fillArchiveNameVector(), and processArgv().
char input_path[1024] = "." |
Referenced by fillArchiveNameVector(), getGamePath(), main(), and processArgv().
uint32 map_count |
Referenced by ExtractMapsFromMpq(), main(), ParsMapFiles(), and ReadMapDBC().
std::vector<map_id> map_ids |
Referenced by main(), and ParsMapFiles().
char output_path[128] = "." |
bool preciseVectorData = false |
Referenced by WMOGroup::ConvertToVMAPGroupWmo(), ExtractSingleWmo(), main(), and processArgv().
char const* szWorkDirWmo = "./Buildings" |
Referenced by GenerateUniqueObjectId().
std::unordered_map<std::string, WMODoodadData> WmoDoodads |
Referenced by ExtractSingleWmo(), ADTFile::init(), and WDTFile::init().