TrinityCore
|
#include "Banner.h"
#include "CascHandles.h"
#include "Common.h"
#include "DB2CascFileSource.h"
#include "DB2Meta.h"
#include "DBFilesClientList.h"
#include "ExtractorDB2LoadInfo.h"
#include "IteratorPair.h"
#include "Locales.h"
#include "MapDefines.h"
#include "StringFormat.h"
#include "Util.h"
#include "adt.h"
#include "wdt.h"
#include <CascLib.h>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <bitset>
#include <cstdio>
#include <deque>
#include <fstream>
#include <set>
#include <unordered_map>
#include <cstdlib>
#include <cstring>
#include <io.h>
Go to the source code of this file.
Classes | |
struct | MapEntry |
struct | LiquidMaterialEntry |
struct | LiquidObjectEntry |
struct | LiquidTypeEntry |
Macros | |
#define | CASC_LOCALES_COUNT 17 |
Enumerations | |
enum | Extract : uint8 { EXTRACT_MAP = 0x1 , EXTRACT_DBC = 0x2 , EXTRACT_CAMERA = 0x4 , EXTRACT_GT = 0x8 , EXTRACT_ALL = EXTRACT_MAP | EXTRACT_DBC | EXTRACT_CAMERA | EXTRACT_GT } |
Functions | |
void | CreateDir (boost::filesystem::path const &path) |
void | Usage (char const *prg) |
void | HandleArgs (int argc, char *arg[]) |
void | TryLoadDB2 (char const *name, DB2CascFileSource *source, DB2FileLoader *db2, DB2FileLoadInfo const *loadInfo) |
void | ReadMapDBC () |
void | ReadLiquidMaterialTable () |
void | ReadLiquidObjectTable () |
void | ReadLiquidTypeTable () |
bool | ReadCinematicCameraDBC () |
float | selectUInt8StepStore (float maxDiff) |
float | selectUInt16StepStore (float maxDiff) |
bool | TransformToHighRes (uint16 lowResHoles, uint8 hiResHoles[8]) |
bool | ConvertADT (ChunkedFile &adt, std::string const &mapName, std::string const &outputPath, int gx, int gy, uint32 build, bool ignoreDeepWater) |
bool | ConvertADT (std::string const &fileName, std::string const &mapName, std::string const &outputPath, int gx, int gy, uint32 build, bool ignoreDeepWater) |
bool | ConvertADT (uint32 fileDataId, std::string const &mapName, std::string const &outputPath, int gx, int gy, uint32 build, bool ignoreDeepWater) |
bool | IsDeepWaterIgnored (uint32 mapId, uint32 x, uint32 y) |
void | ExtractMaps (uint32 build) |
bool | ExtractFile (CASC::File *fileInArchive, std::string const &filename) |
bool | ExtractDB2File (uint32 fileDataId, char const *cascFileName, int locale, boost::filesystem::path const &outputPath) |
char const * | GetCascFilenamePart (char const *cascPath) |
void | ExtractDBFilesClient (int l) |
void | ExtractCameraFiles () |
void | ExtractGameTables () |
bool | OpenCascStorage (int locale) |
uint32 | GetInstalledLocalesMask () |
static bool | RetardCheck () |
int | main (int argc, char *arg[]) |
#define CASC_LOCALES_COUNT 17 |
Definition at line 117 of file System.cpp.
Enumerator | |
---|---|
EXTRACT_MAP | |
EXTRACT_DBC | |
EXTRACT_CAMERA | |
EXTRACT_GT | |
EXTRACT_ALL |
Definition at line 87 of file System.cpp.
bool ConvertADT | ( | ChunkedFile & | adt, |
std::string const & | mapName, | ||
std::string const & | outputPath, | ||
int | gx, | ||
int | gy, | ||
uint32 | build, | ||
bool | ignoreDeepWater | ||
) |
Definition at line 478 of file System.cpp.
bool ConvertADT | ( | std::string const & | fileName, |
std::string const & | mapName, | ||
std::string const & | outputPath, | ||
int | gx, | ||
int | gy, | ||
uint32 | build, | ||
bool | ignoreDeepWater | ||
) |
void CreateDir | ( | boost::filesystem::path const & | path | ) |
void ExtractCameraFiles | ( | ) |
Definition at line 1294 of file System.cpp.
bool ExtractDB2File | ( | uint32 | fileDataId, |
char const * | cascFileName, | ||
int | locale, | ||
boost::filesystem::path const & | outputPath | ||
) |
Definition at line 1180 of file System.cpp.
void ExtractDBFilesClient | ( | int | l | ) |
Definition at line 1269 of file System.cpp.
bool ExtractFile | ( | CASC::File * | fileInArchive, |
std::string const & | filename | ||
) |
Definition at line 1136 of file System.cpp.
void ExtractGameTables | ( | ) |
Definition at line 1327 of file System.cpp.
void ExtractMaps | ( | uint32 | build | ) |
Definition at line 1071 of file System.cpp.
char const * GetCascFilenamePart | ( | char const * | cascPath | ) |
Definition at line 1261 of file System.cpp.
uint32 GetInstalledLocalesMask | ( | ) |
Definition at line 1411 of file System.cpp.
void HandleArgs | ( | int | argc, |
char * | arg[] | ||
) |
Definition at line 176 of file System.cpp.
int main | ( | int | argc, |
char * | arg[] | ||
) |
Definition at line 1472 of file System.cpp.
bool OpenCascStorage | ( | int | locale | ) |
Definition at line 1380 of file System.cpp.
bool ReadCinematicCameraDBC | ( | ) |
Definition at line 390 of file System.cpp.
void ReadLiquidMaterialTable | ( | ) |
Definition at line 317 of file System.cpp.
void ReadLiquidObjectTable | ( | ) |
Definition at line 341 of file System.cpp.
void ReadLiquidTypeTable | ( | ) |
Definition at line 365 of file System.cpp.
void ReadMapDBC | ( | ) |
Definition at line 272 of file System.cpp.
|
static |
float selectUInt16StepStore | ( | float | maxDiff | ) |
float selectUInt8StepStore | ( | float | maxDiff | ) |
void TryLoadDB2 | ( | char const * | name, |
DB2CascFileSource * | source, | ||
DB2FileLoader * | db2, | ||
DB2FileLoadInfo const * | loadInfo | ||
) |
Definition at line 259 of file System.cpp.
void Usage | ( | char const * | prg | ) |
uint16 area_ids[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID] |
Definition at line 426 of file System.cpp.
std::set<uint32> CameraFileDataIds |
Definition at line 79 of file System.cpp.
char const* CascLocaleNames[CASC_LOCALES_COUNT] |
Definition at line 119 of file System.cpp.
std::shared_ptr<CASC::Storage> CascStorage |
Definition at line 49 of file System.cpp.
bool CONF_allow_float_to_int = true |
Definition at line 105 of file System.cpp.
bool CONF_allow_height_limit = true |
Definition at line 101 of file System.cpp.
int CONF_extract = EXTRACT_ALL |
Definition at line 98 of file System.cpp.
float CONF_flat_height_delta_limit = 0.005f |
Definition at line 108 of file System.cpp.
float CONF_flat_liquid_delta_limit = 0.001f |
Definition at line 109 of file System.cpp.
float CONF_float_to_int16_limit = 2048.0f |
Definition at line 107 of file System.cpp.
float CONF_float_to_int8_limit = 2.0f |
Definition at line 106 of file System.cpp.
uint32 CONF_Locale = 0 |
Definition at line 111 of file System.cpp.
char const* CONF_Product = "wow" |
Definition at line 113 of file System.cpp.
char const* CONF_Region = "eu" |
Definition at line 114 of file System.cpp.
float CONF_use_minHeight = -2000.0f |
Definition at line 102 of file System.cpp.
bool CONF_UseRemoteCasc = false |
Definition at line 115 of file System.cpp.
int16 flight_box_max[3][3] |
Definition at line 441 of file System.cpp.
int16 flight_box_min[3][3] |
Definition at line 442 of file System.cpp.
uint8 holes[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID][8] |
Definition at line 439 of file System.cpp.
boost::filesystem::path input_path |
Definition at line 81 of file System.cpp.
uint16 liquid_entry[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID] |
Definition at line 435 of file System.cpp.
map_liquidHeaderTypeFlags liquid_flags[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID] |
Definition at line 436 of file System.cpp.
float liquid_height[ADT_GRID_SIZE+1][ADT_GRID_SIZE+1] |
Definition at line 438 of file System.cpp.
bool liquid_show[ADT_GRID_SIZE][ADT_GRID_SIZE] |
Definition at line 437 of file System.cpp.
std::unordered_map<uint32, LiquidMaterialEntry> LiquidMaterials |
Definition at line 76 of file System.cpp.
std::unordered_map<uint32, LiquidObjectEntry> LiquidObjects |
Definition at line 77 of file System.cpp.
std::unordered_map<uint32, LiquidTypeEntry> LiquidTypes |
Definition at line 78 of file System.cpp.
std::vector<MapEntry> map_ids |
Definition at line 75 of file System.cpp.
boost::filesystem::path output_path |
Definition at line 82 of file System.cpp.
bool PrintProgress = true |
Definition at line 80 of file System.cpp.
uint16 uint16_V8[ADT_GRID_SIZE][ADT_GRID_SIZE] |
Definition at line 430 of file System.cpp.
uint16 uint16_V9[ADT_GRID_SIZE+1][ADT_GRID_SIZE+1] |
Definition at line 431 of file System.cpp.
uint8 uint8_V8[ADT_GRID_SIZE][ADT_GRID_SIZE] |
Definition at line 432 of file System.cpp.
uint8 uint8_V9[ADT_GRID_SIZE+1][ADT_GRID_SIZE+1] |
Definition at line 433 of file System.cpp.
float V8[ADT_GRID_SIZE][ADT_GRID_SIZE] |
Definition at line 428 of file System.cpp.
float V9[ADT_GRID_SIZE+1][ADT_GRID_SIZE+1] |
Definition at line 429 of file System.cpp.
uint32 WowLocaleToCascLocaleFlags[12] |
Definition at line 132 of file System.cpp.