![]() |
TrinityCore
|
Include dependency graph for vmapexport.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Enumerations | |
| enum | ModelFlags { MOD_M2 = 1 , MOD_WORLDSPAWN = 1<<1 , MOD_HAS_BOUND = 1<<2 } |
Functions | |
| uint32 | GenerateUniqueObjectId (uint32 clientId, uint16 clientDoodadId) |
| bool | FileExists (const char *file) |
| void | strToLower (char *str) |
| bool | ExtractSingleWmo (std::string &fname) |
| bool | ExtractSingleModel (std::string &fname) |
| void | ExtractGameobjectModels () |
Variables | |
| const char * | szWorkDirWmo |
| std::unordered_map< std::string, WMODoodadData > | WmoDoodads |
| enum ModelFlags |
| Enumerator | |
|---|---|
| MOD_M2 | |
| MOD_WORLDSPAWN | |
| MOD_HAS_BOUND | |
Definition at line 25 of file vmapexport.h.
| void ExtractGameobjectModels | ( | ) |
Definition at line 58 of file gameobject_extract.cpp.
References DBCFile::begin(), DBCFile::end(), ExtractSingleModel(), ExtractSingleWmo(), FixNameCase(), FixNameSpaces(), GetExtension(), GetPlainName(), model_list, DBCFile::open(), VMAP::RAW_VMAP_MAGIC, strToLower(), and szWorkDirWmo.
Referenced by main().
| bool ExtractSingleModel | ( | std::string & | fname | ) |
Definition at line 26 of file gameobject_extract.cpp.
References Model::ConvertToVMAPModel(), FileExists(), FixNameCase(), FixNameSpaces(), GetPlainName(), Model::open(), and szWorkDirWmo.
Referenced by ExtractGameobjectModels(), ADTFile::init(), and WMORoot::open().
| bool ExtractSingleWmo | ( | std::string & | fname | ) |
Definition at line 85 of file vmapexport.cpp.
References WMOGroup::ConvertToVMAPGroupWmo(), WMORoot::ConvertToVMAPRootWmo(), WMORoot::DoodadData, WMOGroup::DoodadReferences, FileExists(), FixNameCase(), FixNameSpaces(), GetPlainName(), WMORoot::nGroups, WMORoot::open(), WMOGroup::open(), preciseVectorData, WMODoodadData::References, WMOGroup::ShouldSkip(), WMODoodadData::Spawns, Trinity::StringFormat(), szWorkDirWmo, WMORoot::ValidDoodadNames, and WmoDoodads.
Referenced by ExtractGameobjectModels(), ADTFile::init(), and WDTFile::init().
| bool FileExists | ( | const char * | file | ) |
Definition at line 66 of file vmapexport.cpp.
Referenced by ExtractSingleModel(), and ExtractSingleWmo().
Definition at line 59 of file vmapexport.cpp.
References uniqueObjectIds.
Referenced by Doodad::Extract(), and Doodad::ExtractSet().
| void strToLower | ( | char * | str | ) |
Definition at line 76 of file vmapexport.cpp.
|
extern |
Definition at line 55 of file vmapexport.cpp.
Referenced by Doodad::Extract(), ExtractGameobjectModels(), Doodad::ExtractSet(), ExtractSingleModel(), ExtractSingleWmo(), ADTFile::init(), WDTFile::init(), and main().
|
extern |
Definition at line 50 of file vmapexport.cpp.
Referenced by ExtractSingleWmo(), ADTFile::init(), and WDTFile::init().