![]() |
TrinityCore
|
#include "vmapexport.h"#include "adtfile.h"#include "Banner.h"#include "Common.h"#include "DB2CascFileSource.h"#include "ExtractorDB2LoadInfo.h"#include "Locales.h"#include "MapDefines.h"#include "MapUtils.h"#include "Memory.h"#include "StringConvert.h"#include "StringFormat.h"#include "ThreadPool.h"#include "Util.h"#include "VMapDefinitions.h"#include "wdtfile.h"#include "wmo.h"#include <boost/filesystem/directory.hpp>#include <boost/filesystem/operations.hpp>#include <CascLib.h>#include <algorithm>#include <map>#include <mutex>#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 | LiquidMaterialEntry |
| struct | LiquidTypeEntry |
| struct | MapEntry |
Macros | |
| #define | CASC_LOCALES_COUNT 17 |
Functions | |
| bool | OpenCascStorage (int locale) |
| uint32 | GetInstalledLocalesMask () |
| uint32 | GenerateUniqueObjectId (uint32 clientId, uint16 clientDoodadId, bool isWmo) |
| std::pair< ExtractedModelData *, bool > | BeginModelExtraction (std::string const &outputName) |
| ExtractedModelData const * | ExtractSingleWmo (std::string &fname) |
| bool | IsLiquidIgnored (uint32 liquidTypeId) |
| void | ParsMapFiles () |
| void | TryLoadDB2 (char const *name, DB2CascFileSource *source, DB2FileLoader *db2, DB2FileLoadInfo const *loadInfo) |
| void | ReadMapTable () |
| void | ReadLiquidMaterialTable () |
| void | ReadLiquidTypeTable () |
| bool | processArgv (int argc, char **argv, const char *versionString) |
| static bool | RetardCheck () |
| int | main (int argc, char **argv) |
| INIT_CRASH_HANDLER () | |
Variables | |
| std::shared_ptr< CASC::Storage > | CascStorage |
| std::unordered_map< uint32, LiquidMaterialEntry > | LiquidMaterials |
| std::unordered_map< uint32, LiquidTypeEntry > | LiquidTypes |
| std::vector< MapEntry > | map_ids |
| boost::filesystem::path | input_path |
| bool | preciseVectorData = false |
| char const * | CascProduct = "wow" |
| char const * | CascRegion = "eu" |
| bool | UseRemoteCasc = false |
| uint32 | DbcLocale = 0 |
| uint32 | Threads = std::thread::hardware_concurrency() |
| char const * | szWorkDirWmo = "./Buildings" |
| char const * | CascLocaleNames [CASC_LOCALES_COUNT] |
| uint32 | WowLocaleToCascLocaleFlags [12] |
| static std::atomic< uint32 > | UniqueObjectIdGenerator = std::numeric_limits<uint32>::max() - 1 |
| static std::mutex | UniqueObjectIdsMutex |
| static std::map< std::pair< uint32, uint16 >, uint32 > | UniqueObjectIds |
| static std::mutex | ExtractedModelsMutex |
| std::unordered_map< std::string, ExtractedModelData > | ExtractedModels |
| #define CASC_LOCALES_COUNT 17 |
Definition at line 86 of file vmapexport.cpp.
| std::pair< ExtractedModelData *, bool > BeginModelExtraction | ( | std::string const & | outputName | ) |
| ExtractedModelData const * ExtractSingleWmo | ( | std::string & | fname | ) |
Definition at line 199 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| uint32 GetInstalledLocalesMask | ( | ) |
Definition at line 147 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| INIT_CRASH_HANDLER | ( | ) |
| bool IsLiquidIgnored | ( | uint32 | liquidTypeId | ) |
Definition at line 313 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| bool OpenCascStorage | ( | int | locale | ) |
Definition at line 116 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ParsMapFiles | ( | ) |
Definition at line 323 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool processArgv | ( | int | argc, |
| char ** | argv, | ||
| const char * | versionString | ||
| ) |
| void ReadLiquidMaterialTable | ( | ) |
Definition at line 471 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ReadLiquidTypeTable | ( | ) |
Definition at line 495 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ReadMapTable | ( | ) |
Definition at line 411 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| void TryLoadDB2 | ( | char const * | name, |
| DB2CascFileSource * | source, | ||
| DB2FileLoader * | db2, | ||
| DB2FileLoadInfo const * | loadInfo | ||
| ) |
Definition at line 398 of file vmapexport.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| char const* CascLocaleNames[CASC_LOCALES_COUNT] |
Definition at line 87 of file vmapexport.cpp.
| char const* CascProduct = "wow" |
Definition at line 76 of file vmapexport.cpp.
| char const* CascRegion = "eu" |
Definition at line 77 of file vmapexport.cpp.
| std::shared_ptr<CASC::Storage> CascStorage |
Definition at line 47 of file vmapexport.cpp.
| uint32 DbcLocale = 0 |
Definition at line 79 of file vmapexport.cpp.
| std::unordered_map<std::string, ExtractedModelData> ExtractedModels |
Definition at line 190 of file vmapexport.cpp.
|
static |
Definition at line 189 of file vmapexport.cpp.
| boost::filesystem::path input_path |
Definition at line 74 of file vmapexport.cpp.
| std::unordered_map<uint32, LiquidMaterialEntry> LiquidMaterials |
Definition at line 71 of file vmapexport.cpp.
| std::unordered_map<uint32, LiquidTypeEntry> LiquidTypes |
Definition at line 72 of file vmapexport.cpp.
| std::vector<MapEntry> map_ids |
Definition at line 73 of file vmapexport.cpp.
| bool preciseVectorData = false |
Definition at line 75 of file vmapexport.cpp.
| char const* szWorkDirWmo = "./Buildings" |
Definition at line 84 of file vmapexport.cpp.
| uint32 Threads = std::thread::hardware_concurrency() |
Definition at line 80 of file vmapexport.cpp.
Definition at line 177 of file vmapexport.cpp.
Definition at line 179 of file vmapexport.cpp.
|
static |
Definition at line 178 of file vmapexport.cpp.
| bool UseRemoteCasc = false |
Definition at line 78 of file vmapexport.cpp.
| uint32 WowLocaleToCascLocaleFlags[12] |
Definition at line 100 of file vmapexport.cpp.