|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <MMapManager.h>
Public Member Functions | |
| uint32 | getLoadedMapsCount () const |
| uint32 | getLoadedTilesCount () const |
| dtNavMesh const * | GetNavMesh (uint32 mapId, TerrainSet swaps) |
| dtNavMeshQuery const * | GetNavMeshQuery (uint32 mapId, uint32 instanceId, TerrainSet swaps) |
| PhaseTileContainer | GetPhaseTileContainer (uint32 mapId) |
| bool | loadMap (const std::string &basePath, uint32 mapId, int32 x, int32 y) |
| void | LoadPhaseTiles (uint32 mapId, int32 x, int32 y) |
| MMapManager () | |
| bool | unloadMap (uint32 mapId) |
| bool | unloadMap (uint32 mapId, int32 x, int32 y) |
| bool | unloadMapInstance (uint32 mapId, uint32 instanceId) |
| void | UnloadPhaseTile (uint32 mapId, int32 x, int32 y) |
| ~MMapManager () | |
Private Member Functions | |
| bool | loadMapData (uint32 mapId) |
| PhasedTile * | LoadTile (uint32 mapId, int32 x, int32 y) |
| uint32 | packTileID (int32 x, int32 y) |
Private Attributes | |
| PhaseTileMap | _phaseTiles |
| MMapDataSet | loadedMMaps |
| uint32 | loadedTiles |
Definition at line 80 of file MMapManager.h.
|
inline |
Definition at line 83 of file MMapManager.h.
References loadedTiles.
| MMAP::MMapManager::~MMapManager | ( | ) |
Definition at line 14 of file MMapManager.cpp.
References loadedMMaps.
|
inline |
Definition at line 96 of file MMapManager.h.
References loadedMMaps.
Referenced by mmaps_commandscript::HandleMmapStatsCommand().
|
inline |
Definition at line 95 of file MMapManager.h.
References loadedTiles.
Referenced by mmaps_commandscript::HandleMmapStatsCommand().
| dtNavMesh const * MMAP::MMapManager::GetNavMesh | ( | uint32 | mapId, |
| TerrainSet | swaps ) |
Definition at line 362 of file MMapManager.cpp.
References loadedMMaps.
Referenced by misc_commandscript::HandleGPSCommand(), mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapStatsCommand(), and PathGenerator::PathGenerator().
| dtNavMeshQuery const * MMAP::MMapManager::GetNavMeshQuery | ( | uint32 | mapId, |
| uint32 | instanceId, | ||
| TerrainSet | swaps ) |
Definition at line 370 of file MMapManager.cpp.
References ASSERT, MMAP::MMapData::GetNavMesh(), loadedMMaps, MMAP::MMapData::navMeshQueries, SF_LOG_ERROR, and SF_LOG_INFO.
Referenced by mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), and PathGenerator::PathGenerator().
|
inline |
Definition at line 100 of file MMapManager.h.
References _phaseTiles.
Referenced by MMAP::MMapData::GetNavMesh().
Definition at line 78 of file MMapManager.cpp.
References ASSERT, loadedMMaps, MMAP::MMapData::loadedTileRefs, loadedTiles, loadMapData(), LoadPhaseTiles(), MMAP_MAGIC, MMAP_VERSION, MmapTileHeader::mmapMagic, MmapTileHeader::mmapVersion, MMAP::MMapData::navMesh, packTileID(), SF_LOG_DEBUG, SF_LOG_ERROR, SF_LOG_INFO, MmapTileHeader::size, and sWorld.
Referenced by Map::LoadMMap().
|
private |
Definition at line 23 of file MMapManager.cpp.
References ASSERT, loadedMMaps, SF_LOG_DEBUG, SF_LOG_ERROR, SF_LOG_INFO, and sWorld.
Referenced by loadMap().
Definition at line 217 of file MMapManager.cpp.
References _phaseTiles, LoadTile(), packTileID(), SF_LOG_DEBUG, and sMapStore.
Referenced by loadMap().
|
private |
Definition at line 162 of file MMapManager.cpp.
References ASSERT, MMAP::PhasedTile::data, MMAP::PhasedTile::fileHeader, MMAP_MAGIC, MMAP_VERSION, MmapTileHeader::mmapMagic, MmapTileHeader::mmapVersion, SF_LOG_ERROR, MmapTileHeader::size, and sWorld.
Referenced by LoadPhaseTiles().
Definition at line 73 of file MMapManager.cpp.
Referenced by loadMap(), LoadPhaseTiles(), unloadMap(), and UnloadPhaseTile().
| bool MMAP::MMapManager::unloadMap | ( | uint32 | mapId | ) |
Definition at line 304 of file MMapManager.cpp.
References loadedMMaps, MMAP::MMapData::loadedTileRefs, loadedTiles, MMAP::MMapData::navMesh, SF_LOG_DEBUG, SF_LOG_ERROR, SF_LOG_INFO, and UnloadPhaseTile().
Definition at line 259 of file MMapManager.cpp.
References ASSERT, loadedMMaps, MMAP::MMapData::loadedTileRefs, loadedTiles, MMAP::MMapData::navMesh, packTileID(), SF_LOG_DEBUG, SF_LOG_ERROR, SF_LOG_INFO, and UnloadPhaseTile().
Referenced by MapInstanced::DestroyInstance(), and Map::UnloadGrid().
Definition at line 336 of file MMapManager.cpp.
References loadedMMaps, MMAP::MMapData::navMeshQueries, SF_LOG_DEBUG, and SF_LOG_INFO.
Referenced by Map::~Map().
Definition at line 241 of file MMapManager.cpp.
References _phaseTiles, packTileID(), MapEntry::rootPhaseMap, SF_LOG_DEBUG, and sMapStore.
Referenced by unloadMap(), and unloadMap().
|
private |
Definition at line 110 of file MMapManager.h.
Referenced by GetPhaseTileContainer(), LoadPhaseTiles(), and UnloadPhaseTile().
|
private |
Definition at line 106 of file MMapManager.h.
Referenced by getLoadedMapsCount(), GetNavMesh(), GetNavMeshQuery(), loadMap(), loadMapData(), unloadMap(), unloadMap(), unloadMapInstance(), and ~MMapManager().
|
private |
Definition at line 107 of file MMapManager.h.
Referenced by getLoadedTilesCount(), loadMap(), MMapManager(), unloadMap(), and unloadMap().