![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Classes | |
| struct | AreaAndLiquidData |
| struct | AreaInfo |
| struct | GModelRayCallback |
| struct | GroupLocationInfo |
| class | GroupModel |
| struct | GroupModel_Raw |
| class | IntersectionCallBack |
| class | IVMapMgr |
| struct | LocationInfo |
| class | LocationInfoCallback |
| class | ManagedModel |
| class | MapRayCallback |
| struct | MapSpawns |
| class | MeshTriangle |
| class | ModelInstance |
| class | ModelPosition |
| class | ModelSpawn |
| class | MyCollisionDetection |
| class | StaticMapTree |
| class | TileAssembler |
| class | TriBoundFunc |
| class | VMapFactory |
| class | VMapMgr2 |
| class | WModelAreaCallback |
| struct | WModelRayCallBack |
| class | WmoLiquid |
| struct | WMOLiquidHeader |
| class | WorldModel |
| struct | WorldModel_Raw |
Typedefs | |
| typedef std::unordered_map< uint32, StaticMapTree * > | InstanceTreeMap |
| typedef std::unordered_map< std::string, ManagedModel > | ModelFileMap |
| typedef std::map< uint32, ModelSpawn > | UniqueEntryMap |
| typedef std::multimap< uint32, uint32 > | TileMap |
| typedef std::map< uint32, MapSpawns * > | MapData |
Enumerations | |
| enum | VMAP_LOAD_RESULT { VMAP_LOAD_RESULT_ERROR , VMAP_LOAD_RESULT_OK , VMAP_LOAD_RESULT_IGNORED } |
| enum class | LoadResult : uint8 { Success , FileNotFound , VersionMismatch } |
| enum | DisableTypes { VMAP_DISABLE_AREAFLAG = 0x1 , VMAP_DISABLE_HEIGHT = 0x2 , VMAP_DISABLE_LOS = 0x4 , VMAP_DISABLE_LIQUIDSTATUS = 0x8 } |
| enum class | ModelIgnoreFlags : uint32 { Nothing = 0x00 , M2 = 0x01 } |
| enum | ModelFlags { MOD_M2 = 1 , MOD_WORLDSPAWN = 1 << 1 , MOD_HAS_BOUND = 1 << 2 } |
Functions | |
| bool | readChunk (FILE *rf, char *dest, const char *compare, uint32 len) |
| ModelIgnoreFlags | operator& (ModelIgnoreFlags left, ModelIgnoreFlags right) |
| bool | IntersectTriangle (const MeshTriangle &tri, std::vector< Vector3 >::const_iterator points, const G3D::Ray &ray, float &distance) |
| bool | IsInsideOrAboveBound (G3D::AABox const &bounds, const G3D::Point3 &point) |
Variables | |
| VMapMgr2 * | gVMapMgr = nullptr |
| const char | VMAP_MAGIC [] = "VMAP_4.7" |
| const char | RAW_VMAP_MAGIC [] = "VMAP047" |
| const char | GAMEOBJECT_MODELS [] = "GameObjectModels.dtree" |
This is the minimum interface to the VMapMamager.
The Class is mainly taken from G3D/AABSPTree.h but modified to be able to use our internal data structure. This is an iterator that helps us analysing the BSP-Trees. The collision detection is modified to return true, if we are inside an object.
| typedef std::unordered_map<uint32, StaticMapTree*> VMAP::InstanceTreeMap |
| typedef std::map<uint32, MapSpawns*> VMAP::MapData |
| typedef std::unordered_map<std::string, ManagedModel> VMAP::ModelFileMap |
| typedef std::multimap<uint32, uint32> VMAP::TileMap |
| typedef std::map<uint32, ModelSpawn> VMAP::UniqueEntryMap |
| enum VMAP::DisableTypes |
| Enumerator | |
|---|---|
| VMAP_DISABLE_AREAFLAG | |
| VMAP_DISABLE_HEIGHT | |
| VMAP_DISABLE_LOS | |
| VMAP_DISABLE_LIQUIDSTATUS | |
|
strong |
| Enumerator | |
|---|---|
| Success | |
| FileNotFound | |
| VersionMismatch | |
| enum VMAP::ModelFlags |
| Enumerator | |
|---|---|
| MOD_M2 | |
| MOD_WORLDSPAWN | |
| MOD_HAS_BOUND | |
|
strong |
| bool VMAP::IntersectTriangle | ( | const MeshTriangle & | tri, |
| std::vector< Vector3 >::const_iterator | points, | ||
| const G3D::Ray & | ray, | ||
| float & | distance | ||
| ) |
References VMAP::MeshTriangle::idx0, VMAP::MeshTriangle::idx1, and VMAP::MeshTriangle::idx2.
Referenced by VMAP::GModelRayCallback::operator()().
|
inline |
Referenced by VMAP::GroupModel::IsInsideObject().
|
inline |
| bool VMAP::readChunk | ( | FILE * | rf, |
| char * | dest, | ||
| const char * | compare, | ||
| uint32 | len | ||
| ) |
Referenced by VMAP::StaticMapTree::CanLoadMap(), VMAP::StaticMapTree::InitMap(), VMAP::StaticMapTree::LoadMapTile(), VMAP::WorldModel::readFile(), VMAP::GroupModel::readFromFile(), and VMAP::StaticMapTree::UnloadMapTile().
| const char VMAP::GAMEOBJECT_MODELS[] = "GameObjectModels.dtree" |
Referenced by VMAP::TileAssembler::exportGameobjectModels(), and LoadGameObjectModelList().
| VMapMgr2* VMAP::gVMapMgr = nullptr |
Referenced by VMAP::VMapFactory::clear(), and VMAP::VMapFactory::createOrGetVMapMgr().
| const char VMAP::RAW_VMAP_MAGIC = "VMAP047" |
| const char VMAP::VMAP_MAGIC = "VMAP_4.7" |
Referenced by VMAP::StaticMapTree::CanLoadMap(), VMAP::TileAssembler::convertWorld2(), VMAP::TileAssembler::exportGameobjectModels(), VMAP::StaticMapTree::InitMap(), LoadGameObjectModelList(), VMAP::StaticMapTree::LoadMapTile(), VMAP::WorldModel::readFile(), VMAP::StaticMapTree::UnloadMapTile(), and VMAP::WorldModel::writeFile().