19 #ifndef _TILEASSEMBLER_H_
20 #define _TILEASSEMBLER_H_
56 typedef std::multimap<uint32, uint32>
TileMap;
64 typedef std::map<uint32, MapSpawns*>
MapData;
90 bool Read(
const char * path);
98 bool (*iFilterMethod)(
char *pName);
105 TileAssembler(
const std::string& pSrcDirName,
const std::string& pDestDirName);
108 bool convertWorld2();
109 bool readMapSpawns();
110 bool calculateTransformedBound(
ModelSpawn &spawn);
111 void exportGameobjectModels();
113 bool convertRawFile(
const std::string& pModelFilename);
115 std::string getDirEntryNameFromModName(
unsigned int pMapId,
const std::string& pModPosName);
float x
Definition: Vector3.h:62
Definition: TileAssembler.h:67
std::map< uint32, MapSpawns * > MapData
Definition: TileAssembler.h:64
UniqueEntryMap UniqueEntries
Definition: TileAssembler.h:60
std::multimap< uint32, uint32 > TileMap
Definition: TileAssembler.h:56
G3D::AABox bounds
Definition: TileAssembler.h:72
uint32 RootWMOID
Definition: TileAssembler.h:87
std::set< std::string > spawnedModelFiles
Definition: TileAssembler.h:102
unsigned int iCurrentUniqueNameId
Definition: TileAssembler.h:100
uint32 GroupWMOID
Definition: TileAssembler.h:70
G3D::Vector3 iDir
Definition: TileAssembler.h:45
std::vector< GroupModel_Raw > groupsArray
Definition: TileAssembler.h:88
GroupModel_Raw()
Definition: TileAssembler.h:78
arena_t NULL
Definition: jemalloc_internal.h:624
G3D::Matrix3 iRotation
Definition: TileAssembler.h:41
Definition: IVMapManager.h:31
float y
Definition: Vector3.h:62
G3D::Vector3 iPos
Definition: TileAssembler.h:44
#define bool
Definition: CascPort.h:16
std::string iDestDir
Definition: TileAssembler.h:96
Definition: TileAssembler.h:85
MapData mapData
Definition: TileAssembler.h:101
ModelPosition()
Definition: TileAssembler.h:43
Definition: TileAssembler.h:58
G3D::Table< std::string, unsigned int > iUniqueNameIds
Definition: TileAssembler.h:99
std::vector< G3D::Vector3 > vertexArray
Definition: TileAssembler.h:75
uint32_t uint32
Definition: Define.h:150
void setModelNameFilterMethod(bool(*pFilterMethod)(char *pName))
Definition: TileAssembler.h:114
class WmoLiquid * liquid
Definition: TileAssembler.h:76
#define TC_COMMON_API
Definition: Define.h:116
float iScale
Definition: TileAssembler.h:46
Definition: TileAssembler.h:93
Definition: WorldModel.h:47
float z
Definition: Vector3.h:62
std::vector< MeshTriangle > triangles
Definition: TileAssembler.h:74
Definition: TileAssembler.h:38
Definition: ModelInstance.h:42
uint32 mogpflags
Definition: TileAssembler.h:69
float pif()
Definition: g3dmath.h:151
std::map< uint32, ModelSpawn > UniqueEntryMap
Definition: TileAssembler.h:55
static Matrix3 fromEulerAnglesZYX(float fYAngle, float fPAngle, float fRAngle)
Definition: Matrix3.cpp:1664
TileMap TileEntries
Definition: TileAssembler.h:61
void init()
Definition: TileAssembler.h:47
void moveToBasePos(const G3D::Vector3 &pBasePos)
Definition: TileAssembler.h:52
uint32 liquidflags
Definition: TileAssembler.h:73
std::string iSrcDir
Definition: TileAssembler.h:97