![]() |
TrinityCore
|
#include <TileAssembler.h>
Public Member Functions | |
| TileAssembler (const std::string &pSrcDirName, const std::string &pDestDirName) | |
| virtual | ~TileAssembler () |
| bool | convertWorld2 () |
| bool | readMapSpawns () |
| bool | calculateTransformedBound (ModelSpawn &spawn) |
| void | exportGameobjectModels () |
| bool | convertRawFile (const std::string &pModelFilename) |
Private Attributes | |
| std::string | iDestDir |
| std::string | iSrcDir |
| MapData | mapData |
| std::set< std::string > | spawnedModelFiles |
Definition at line 92 of file TileAssembler.h.
| VMAP::TileAssembler::TileAssembler | ( | const std::string & | pSrcDirName, |
| const std::string & | pDestDirName | ||
| ) |
Definition at line 55 of file TileAssembler.cpp.
References iDestDir.
|
virtual |
Definition at line 62 of file TileAssembler.cpp.
| bool VMAP::TileAssembler::calculateTransformedBound | ( | ModelSpawn & | spawn | ) |
Definition at line 252 of file TileAssembler.cpp.
References VMAP::ModelSpawn::flags, VMAP::WorldModel_Raw::groupsArray, VMAP::ModelSpawn::iBound, VMAP::ModelPosition::iDir, VMAP::ModelPosition::init(), VMAP::ModelSpawn::iPos, VMAP::ModelSpawn::iRot, VMAP::ModelPosition::iScale, VMAP::ModelSpawn::iScale, iSrcDir, VMAP::MOD_HAS_BOUND, VMAP::ModelSpawn::name, VMAP::WorldModel_Raw::Read(), and VMAP::ModelPosition::transform().
Referenced by convertWorld2().
| bool VMAP::TileAssembler::convertRawFile | ( | const std::string & | pModelFilename | ) |
Definition at line 314 of file TileAssembler.cpp.
References VMAP::GroupModel_Raw::bounds, VMAP::WorldModel_Raw::groupsArray, VMAP::GroupModel_Raw::GroupWMOID, iDestDir, iSrcDir, VMAP::GroupModel_Raw::liquid, VMAP::GroupModel_Raw::mogpflags, VMAP::WorldModel_Raw::Read(), VMAP::WorldModel_Raw::RootWMOID, VMAP::WorldModel::setGroupModels(), VMAP::WorldModel::setRootWmoID(), VMAP::GroupModel_Raw::triangles, VMAP::GroupModel_Raw::vertexArray, and VMAP::WorldModel::writeFile().
Referenced by convertWorld2().
| bool VMAP::TileAssembler::convertWorld2 | ( | ) |
Definition at line 67 of file TileAssembler.cpp.
References BIH::build(), calculateTransformedBound(), convertRawFile(), exportGameobjectModels(), VMAP::ModelSpawn::flags, VMAP::ModelSpawn::ID, iDestDir, mapData, VMAP::MOD_M2, VMAP::MOD_WORLDSPAWN, VMAP::StaticMapTree::packTileID(), readMapSpawns(), spawnedModelFiles, VMAP::StaticMapTree::unpackTileID(), VMAP::VMAP_MAGIC, VMAP::ModelSpawn::writeToFile(), and BIH::writeToFile().
Referenced by main().
| void VMAP::TileAssembler::exportGameobjectModels | ( | ) |
Definition at line 350 of file TileAssembler.cpp.
References VMAP::GAMEOBJECT_MODELS, VMAP::WorldModel_Raw::groupsArray, iDestDir, iSrcDir, model_list, VMAP::RAW_VMAP_MAGIC, VMAP::WorldModel_Raw::Read(), spawnedModelFiles, and VMAP::VMAP_MAGIC.
Referenced by convertWorld2().
| bool VMAP::TileAssembler::readMapSpawns | ( | ) |
Definition at line 206 of file TileAssembler.cpp.
References VMAP::ModelSpawn::ID, iSrcDir, mapData, VMAP::StaticMapTree::packTileID(), VMAP::ModelSpawn::readFromFile(), VMAP::MapSpawns::TileEntries, and VMAP::MapSpawns::UniqueEntries.
Referenced by convertWorld2().
|
private |
Definition at line 95 of file TileAssembler.h.
Referenced by convertRawFile(), convertWorld2(), exportGameobjectModels(), and TileAssembler().
|
private |
Definition at line 96 of file TileAssembler.h.
Referenced by calculateTransformedBound(), convertRawFile(), exportGameobjectModels(), and readMapSpawns().
|
private |
Definition at line 97 of file TileAssembler.h.
Referenced by convertWorld2(), and readMapSpawns().
|
private |
Definition at line 98 of file TileAssembler.h.
Referenced by convertWorld2(), and exportGameobjectModels().