![]() |
TrinityCore
|
#include "Banner.h"#include "DB2FileLoader.h"#include "DB2FileSystemSource.h"#include "ExtractorDB2LoadInfo.h"#include "IoContext.h"#include "Locales.h"#include "Log.h"#include "MapBuilder.h"#include "Memory.h"#include "PathCommon.h"#include "Timer.h"#include "Util.h"#include "VMapManager.h"#include <boost/filesystem/operations.hpp>#include <unordered_map>#include <vector>#include "Info/readme.txt"
Include dependency graph for PathGenerator.cpp:Go to the source code of this file.
Namespaces | |
| namespace | MMAP |
| namespace | MMAP::VMapFactory |
Functions | |
| std::unique_ptr< VMAP::VMapManager > | MMAP::VMapFactory::CreateVMapManager (uint32 mapId) |
| void | SetupLogging (Trinity::Asio::IoContext *ioContext) |
| bool | checkDirectories (boost::filesystem::path const &inputDirectory, boost::filesystem::path const &outputDirectory, bool debugOutput, std::vector< std::string > &dbcLocales) |
| int | finish (char const *message, int returnValue) |
| bool | handleArgs (int argc, char **argv, int &mapnum, int &tileX, int &tileY, Optional< float > &maxAngle, Optional< float > &maxAngleNotSteep, bool &skipLiquid, bool &skipContinents, bool &skipJunkMaps, bool &skipBattlegrounds, bool &debugOutput, bool &silent, bool &bigBaseUnit, char const *&offMeshInputPath, char const *&file, unsigned int &threads, boost::filesystem::path &inputDirectory, boost::filesystem::path &outputDirectory) |
| std::unordered_map< uint32, uint8 > | LoadLiquid (boost::filesystem::path const &inputDirectory, std::string const &locale, bool silent, int32 errorExitCode) |
| void | LoadMap (boost::filesystem::path const &inputDirectory, std::string const &locale, bool silent, int32 errorExitCode) |
| int | main (int argc, char **argv) |
Variables | |
| constexpr char | Readme [] |
| bool checkDirectories | ( | boost::filesystem::path const & | inputDirectory, |
| boost::filesystem::path const & | outputDirectory, | ||
| bool | debugOutput, | ||
| std::vector< std::string > & | dbcLocales | ||
| ) |
Definition at line 90 of file PathGenerator.cpp.
References MMAP::getDirContents(), MMAP::LISTFILE_DIRECTORY_NOT_FOUND, and TC_LOG_ERROR.
Referenced by main().
| int finish | ( | char const * | message, |
| int | returnValue | ||
| ) |
Definition at line 133 of file PathGenerator.cpp.
References TC_LOG_FATAL.
Referenced by handleArgs(), LoadLiquid(), LoadMap(), and main().
| bool handleArgs | ( | int | argc, |
| char ** | argv, | ||
| int & | mapnum, | ||
| int & | tileX, | ||
| int & | tileY, | ||
| Optional< float > & | maxAngle, | ||
| Optional< float > & | maxAngleNotSteep, | ||
| bool & | skipLiquid, | ||
| bool & | skipContinents, | ||
| bool & | skipJunkMaps, | ||
| bool & | skipBattlegrounds, | ||
| bool & | debugOutput, | ||
| bool & | silent, | ||
| bool & | bigBaseUnit, | ||
| char const *& | offMeshInputPath, | ||
| char const *& | file, | ||
| unsigned int & | threads, | ||
| boost::filesystem::path & | inputDirectory, | ||
| boost::filesystem::path & | outputDirectory | ||
| ) |
Definition at line 140 of file PathGenerator.cpp.
References finish(), Readme, TC_LOG_ERROR, and TC_LOG_INFO.
Referenced by main().
| std::unordered_map< uint32, uint8 > LoadLiquid | ( | boost::filesystem::path const & | inputDirectory, |
| std::string const & | locale, | ||
| bool | silent, | ||
| int32 | errorExitCode | ||
| ) |
Definition at line 364 of file PathGenerator.cpp.
References finish(), DB2Record::GetId(), DB2FileLoader::GetRecord(), DB2FileLoader::GetRecordCount(), DB2Record::GetUInt8(), LiquidTypeLoadInfo::Instance, and DB2FileLoader::Load().
Referenced by main().
| void LoadMap | ( | boost::filesystem::path const & | inputDirectory, |
| std::string const & | locale, | ||
| bool | silent, | ||
| int32 | errorExitCode | ||
| ) |
Definition at line 392 of file PathGenerator.cpp.
References finish(), MMAP::MapEntry::Flags, DB2Record::GetId(), DB2Record::GetInt32(), DB2FileLoader::GetRecord(), DB2FileLoader::GetRecordCount(), DB2Record::GetUInt16(), DB2Record::GetUInt8(), MapLoadInfo::Instance, MMAP::MapEntry::InstanceType, DB2FileLoader::Load(), MMAP::MapEntry::MapType, MMAP::MapEntry::ParentMapID, and MMAP::sMapStore.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 425 of file PathGenerator.cpp.
References MMAP::MapBuilder::buildMaps(), MMAP::MapBuilder::buildMeshFromFile(), MMAP::MapBuilder::buildSingleTile(), checkDirectories(), MMAP::VMapFactory::CreateVMapManager(), MMAP::CreateVMapManager, finish(), Trinity::Asio::IoContext::get_executor(), getMSTime(), GetMSTimeDiffToNow(), handleArgs(), Trinity::Locale::Init(), LoadLiquid(), LoadMap(), Trinity::make_unique_ptr_with_deleter(), Trinity::Asio::IoContext::run(), secsToTimeString(), SetupLogging(), Trinity::Banner::Show(), TC_LOG_INFO, and Trinity::VerifyOsVersion().
| void SetupLogging | ( | Trinity::Asio::IoContext * | ioContext | ) |
Definition at line 77 of file PathGenerator.cpp.
References Log::CreateAppenderFromConfigLine(), Log::CreateLoggerFromConfigLine(), Log::SetAsynchronous(), and sLog.
Referenced by main().
|
constexpr |