AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "MMapMgr.h"
Public Member Functions | |
MMapMgr ()=default | |
~MMapMgr () | |
void | InitializeThreadUnsafe (const std::vector< uint32 > &mapIds) |
bool | loadMap (uint32 mapId, int32 x, int32 y) |
bool | unloadMap (uint32 mapId, int32 x, int32 y) |
bool | unloadMap (uint32 mapId) |
bool | unloadMapInstance (uint32 mapId, uint32 instanceId) |
dtNavMeshQuery const * | GetNavMeshQuery (uint32 mapId, uint32 instanceId) |
dtNavMesh const * | GetNavMesh (uint32 mapId) |
uint32 | getLoadedTilesCount () const |
uint32 | getLoadedMapsCount () const |
Private Member Functions | |
bool | loadMapData (uint32 mapId) |
uint32 | packTileID (int32 x, int32 y) |
MMapDataSet::const_iterator | GetMMapData (uint32 mapId) const |
Private Attributes | |
MMapDataSet | loadedMMaps |
uint32 | loadedTiles {0} |
bool | thread_safe_environment {true} |
|
default |
MMAP::MMapMgr::~MMapMgr | ( | ) |
References loadedMMaps.
|
inline |
|
inline |
|
private |
References loadedMMaps.
Referenced by GetNavMesh(), GetNavMeshQuery(), unloadMap(), and unloadMapInstance().
dtNavMesh const * MMAP::MMapMgr::GetNavMesh | ( | uint32 | mapId | ) |
References GetMMapData(), and loadedMMaps.
Referenced by misc_commandscript::HandleGPSCommand(), mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapStatsCommand(), and PathGenerator::PathGenerator().
References ASSERT, GetMMapData(), loadedMMaps, LOG_DEBUG, LOG_ERROR, MMAP::MMapData::navMesh, and MMAP::MMapData::navMeshQueries.
Referenced by mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), and PathGenerator::PathGenerator().
void MMAP::MMapMgr::InitializeThreadUnsafe | ( | const std::vector< uint32 > & | mapIds | ) |
References loadedMMaps, and thread_safe_environment.
Referenced by World::SetInitialWorldSettings().
References ASSERT, loadedMMaps, MMAP::MMapData::loadedTileRefs, loadedTiles, loadMapData(), LOG_DEBUG, LOG_ERROR, MMAP_MAGIC, MMAP_VERSION, MmapTileHeader::mmapMagic, MmapTileHeader::mmapVersion, MMAP::MMapData::navMesh, packTileID(), sConfigMgr, MmapTileHeader::size, Acore::StringFormat(), and MMAP::TILE_FILE_NAME_FORMAT.
Referenced by Map::LoadMMap().
|
private |
References ABORT, ASSERT, loadedMMaps, LOG_DEBUG, LOG_ERROR, MMAP::MAP_FILE_NAME_FORMAT, sConfigMgr, Acore::StringFormat(), and thread_safe_environment.
Referenced by loadMap().
Referenced by loadMap(), and unloadMap().
bool MMAP::MMapMgr::unloadMap | ( | uint32 | mapId | ) |
References loadedMMaps, MMAP::MMapData::loadedTileRefs, loadedTiles, LOG_DEBUG, LOG_ERROR, and MMAP::MMapData::navMesh.
References ABORT, GetMMapData(), loadedMMaps, MMAP::MMapData::loadedTileRefs, loadedTiles, LOG_DEBUG, LOG_ERROR, MMAP::MMapData::navMesh, and packTileID().
Referenced by Map::UnloadGrid().
References GetMMapData(), loadedMMaps, LOG_DEBUG, and MMAP::MMapData::navMeshQueries.
Referenced by Map::~Map().
|
private |
Referenced by getLoadedMapsCount(), GetMMapData(), GetNavMesh(), GetNavMeshQuery(), InitializeThreadUnsafe(), loadMap(), loadMapData(), unloadMap(), unloadMapInstance(), and ~MMapMgr().
|
private |
Referenced by getLoadedTilesCount(), loadMap(), and unloadMap().
|
private |
Referenced by InitializeThreadUnsafe(), and loadMapData().