#include "dbcfile.h"
#include "Banner.h"
#include "Locales.h"
#include "mpq_libmpq.h"
#include "StringFormat.h"
#include "Util.h"
#include "adt.h"
#include "wdt.h"
#include <boost/filesystem/directory.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <deque>
#include <fstream>
#include <set>
#include <unordered_map>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <G3D/Plane.h>
#include <boost/filesystem.hpp>
#include "WheatyExceptionReport.h"
Go to the source code of this file.
|
| std::vector< map_id > | map_ids |
| |
| std::unordered_map< uint32, LiquidTypeEntry > | LiquidTypes |
| |
| char | output_path [MAX_PATH_LENGTH] = "." |
| |
| char | input_path [MAX_PATH_LENGTH] = "." |
| |
| int | CONF_extract = EXTRACT_MAP | EXTRACT_DBC | EXTRACT_CAMERA |
| |
| bool | CONF_allow_height_limit = true |
| |
| float | CONF_use_minHeight = -500.0f |
| |
| bool | CONF_allow_float_to_int = true |
| |
| float | CONF_float_to_int8_limit = 2.0f |
| |
| float | CONF_float_to_int16_limit = 2048.0f |
| |
| float | CONF_flat_height_delta_limit = 0.005f |
| |
| float | CONF_flat_liquid_delta_limit = 0.001f |
| |
| static constexpr std::array< std::string_view, 12 > | MpqLocaleNames = { "enGB", "enUS", "deDE", "esES", "frFR", "koKR", "zhCN", "zhTW", "enCN", "enTW", "esMX", "ruRU" } |
| |
| static char const * | MAP_MAGIC = "MAPS" |
| |
| static uint32 const | MAP_VERSION_MAGIC = 10 |
| |
| static char const * | MAP_AREA_MAGIC = "AREA" |
| |
| static char const * | MAP_HEIGHT_MAGIC = "MHGT" |
| |
| static char const * | MAP_LIQUID_MAGIC = "MLIQ" |
| |
| uint16 | area_ids [ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID] |
| |
| float | V8 [ADT_GRID_SIZE][ADT_GRID_SIZE] |
| |
| float | V9 [ADT_GRID_SIZE+1][ADT_GRID_SIZE+1] |
| |
| uint16 | uint16_V8 [ADT_GRID_SIZE][ADT_GRID_SIZE] |
| |
| uint16 | uint16_V9 [ADT_GRID_SIZE+1][ADT_GRID_SIZE+1] |
| |
| uint8 | uint8_V8 [ADT_GRID_SIZE][ADT_GRID_SIZE] |
| |
| uint8 | uint8_V9 [ADT_GRID_SIZE+1][ADT_GRID_SIZE+1] |
| |
| uint16 | liquid_entry [ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID] |
| |
| uint8 | liquid_flags [ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID] |
| |
| bool | liquid_show [ADT_GRID_SIZE][ADT_GRID_SIZE] |
| |
| float | liquid_height [ADT_GRID_SIZE+1][ADT_GRID_SIZE+1] |
| |
| uint16 | holes [ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID] |
| |
| int16 | flight_box_max [3][3] |
| |
| int16 | flight_box_min [3][3] |
| |
◆ MAP_AREA_NO_AREA
| #define MAP_AREA_NO_AREA 0x0001 |
◆ MAP_HEIGHT_AS_INT16
| #define MAP_HEIGHT_AS_INT16 0x0002 |
◆ MAP_HEIGHT_AS_INT8
| #define MAP_HEIGHT_AS_INT8 0x0004 |
◆ MAP_HEIGHT_HAS_FLIGHT_BOUNDS
| #define MAP_HEIGHT_HAS_FLIGHT_BOUNDS 0x0008 |
◆ MAP_HEIGHT_NO_HEIGHT
| #define MAP_HEIGHT_NO_HEIGHT 0x0001 |
◆ MAP_LIQUID_NO_HEIGHT
| #define MAP_LIQUID_NO_HEIGHT 0x0002 |
◆ MAP_LIQUID_NO_TYPE
| #define MAP_LIQUID_NO_TYPE 0x0001 |
◆ MAP_LIQUID_TYPE_DARK_WATER
| #define MAP_LIQUID_TYPE_DARK_WATER 0x10 |
◆ MAP_LIQUID_TYPE_MAGMA
| #define MAP_LIQUID_TYPE_MAGMA 0x04 |
◆ MAP_LIQUID_TYPE_NO_WATER
| #define MAP_LIQUID_TYPE_NO_WATER 0x00 |
◆ MAP_LIQUID_TYPE_OCEAN
| #define MAP_LIQUID_TYPE_OCEAN 0x02 |
◆ MAP_LIQUID_TYPE_SLIME
| #define MAP_LIQUID_TYPE_SLIME 0x08 |
◆ MAP_LIQUID_TYPE_WATER
| #define MAP_LIQUID_TYPE_WATER 0x01 |
◆ MAX_PATH_LENGTH
| #define MAX_PATH_LENGTH 128 |
◆ Extract
| Enumerator |
|---|
| EXTRACT_MAP | |
| EXTRACT_DBC | |
| EXTRACT_CAMERA | |
Definition at line 61 of file System.cpp.
◆ ConvertADT()
| bool ConvertADT |
( |
std::string const & |
inputPath, |
|
|
std::string const & |
outputPath, |
|
|
int |
, |
|
|
int |
, |
|
|
uint32 |
build |
|
) |
| |
◆ CreateDir()
| void CreateDir |
( |
boost::filesystem::path const & |
path | ) |
|
◆ ExtractCameraFiles()
| void ExtractCameraFiles |
( |
int |
locale, |
|
|
bool |
basicLocale |
|
) |
| |
◆ ExtractDBCFiles()
| void ExtractDBCFiles |
( |
int |
locale, |
|
|
bool |
basicLocale |
|
) |
| |
◆ ExtractFile()
| bool ExtractFile |
( |
char const * |
mpq_name, |
|
|
std::string const & |
filename |
|
) |
| |
◆ ExtractMapsFromMpq()
| void ExtractMapsFromMpq |
( |
uint32 |
build | ) |
|
◆ HandleArgs()
| void HandleArgs |
( |
int |
argc, |
|
|
char * |
arg[] |
|
) |
| |
◆ INIT_CRASH_HANDLER()
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
arg[] |
|
) |
| |
◆ ReadBuild()
| uint32 ReadBuild |
( |
int |
locale | ) |
|
◆ ReadLiquidTypeTableDBC()
| void ReadLiquidTypeTableDBC |
( |
| ) |
|
◆ ReadMapDBC()
◆ selectUInt16StepStore()
| float selectUInt16StepStore |
( |
float |
maxDiff | ) |
|
◆ selectUInt8StepStore()
| float selectUInt8StepStore |
( |
float |
maxDiff | ) |
|
◆ Usage()
| void Usage |
( |
char const * |
prg | ) |
|
◆ area_ids
◆ CONF_allow_float_to_int
| bool CONF_allow_float_to_int = true |
◆ CONF_allow_height_limit
| bool CONF_allow_height_limit = true |
◆ CONF_extract
◆ CONF_flat_height_delta_limit
| float CONF_flat_height_delta_limit = 0.005f |
◆ CONF_flat_liquid_delta_limit
| float CONF_flat_liquid_delta_limit = 0.001f |
◆ CONF_float_to_int16_limit
| float CONF_float_to_int16_limit = 2048.0f |
◆ CONF_float_to_int8_limit
| float CONF_float_to_int8_limit = 2.0f |
◆ CONF_use_minHeight
| float CONF_use_minHeight = -500.0f |
◆ flight_box_max
| int16 flight_box_max[3][3] |
◆ flight_box_min
| int16 flight_box_min[3][3] |
◆ holes
◆ input_path
◆ liquid_entry
◆ liquid_flags
◆ liquid_height
◆ liquid_show
◆ LiquidTypes
◆ MAP_AREA_MAGIC
| char const* MAP_AREA_MAGIC = "AREA" |
|
static |
◆ MAP_HEIGHT_MAGIC
| char const* MAP_HEIGHT_MAGIC = "MHGT" |
|
static |
◆ map_ids
◆ MAP_LIQUID_MAGIC
| char const* MAP_LIQUID_MAGIC = "MLIQ" |
|
static |
◆ MAP_MAGIC
| char const* MAP_MAGIC = "MAPS" |
|
static |
◆ MAP_VERSION_MAGIC
| uint32 const MAP_VERSION_MAGIC = 10 |
|
static |
◆ MpqLocaleNames
| constexpr std::array<std::string_view, 12> MpqLocaleNames = { "enGB", "enUS", "deDE", "esES", "frFR", "koKR", "zhCN", "zhTW", "enCN", "enTW", "esMX", "ruRU" } |
|
staticconstexpr |
◆ output_path
◆ uint16_V8
◆ uint16_V9
◆ uint8_V8
◆ uint8_V9
◆ V8
◆ V9