TrinityCore
Loading...
Searching...
No Matches
MMAP::MMapManager Class Reference

#include <MMapManager.h>

Public Member Functions

 MMapManager ()
 
 ~MMapManager ()
 
void InitializeThreadUnsafe (const std::vector< uint32 > &mapIds)
 
bool loadMap (std::string const &basePath, uint32 mapId, int32 x, int32 y)
 
bool loadMapInstance (std::string const &basePath, uint32 mapId, uint32 instanceId)
 
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 (std::string const &basePath, uint32 mapId)
 
uint32 packTileID (int32 x, int32 y)
 
MMapDataSet::const_iterator GetMMapData (uint32 mapId) const
 

Private Attributes

MMapDataSet loadedMMaps
 
uint32 loadedTiles
 
bool thread_safe_environment
 

Detailed Description

Definition at line 58 of file MMapManager.h.

Constructor & Destructor Documentation

◆ MMapManager()

MMAP::MMapManager::MMapManager ( )
inline

Definition at line 61 of file MMapManager.h.

◆ ~MMapManager()

MMAP::MMapManager::~MMapManager ( )

Definition at line 29 of file MMapManager.cpp.

Member Function Documentation

◆ getLoadedMapsCount()

uint32 MMAP::MMapManager::getLoadedMapsCount ( ) const
inline

Definition at line 76 of file MMapManager.h.

+ Here is the caller graph for this function:

◆ getLoadedTilesCount()

uint32 MMAP::MMapManager::getLoadedTilesCount ( ) const
inline

Definition at line 75 of file MMapManager.h.

+ Here is the caller graph for this function:

◆ GetMMapData()

MMapDataSet::const_iterator MMAP::MMapManager::GetMMapData ( uint32  mapId) const
private

Definition at line 47 of file MMapManager.cpp.

+ Here is the caller graph for this function:

◆ GetNavMesh()

dtNavMesh const * MMAP::MMapManager::GetNavMesh ( uint32  mapId)

Definition at line 327 of file MMapManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNavMeshQuery()

dtNavMeshQuery const * MMAP::MMapManager::GetNavMeshQuery ( uint32  mapId,
uint32  instanceId 
)

Definition at line 336 of file MMapManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitializeThreadUnsafe()

void MMAP::MMapManager::InitializeThreadUnsafe ( const std::vector< uint32 > &  mapIds)

Definition at line 38 of file MMapManager.cpp.

+ Here is the caller graph for this function:

◆ loadMap()

bool MMAP::MMapManager::loadMap ( std::string const &  basePath,
uint32  mapId,
int32  x,
int32  y 
)

Definition at line 115 of file MMapManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadMapData()

bool MMAP::MMapManager::loadMapData ( std::string const &  basePath,
uint32  mapId 
)
private

Definition at line 57 of file MMapManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadMapInstance()

bool MMAP::MMapManager::loadMapInstance ( std::string const &  basePath,
uint32  mapId,
uint32  instanceId 
)

Definition at line 199 of file MMapManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ packTileID()

uint32 MMAP::MMapManager::packTileID ( int32  x,
int32  y 
)
private

Definition at line 110 of file MMapManager.cpp.

+ Here is the caller graph for this function:

◆ unloadMap() [1/2]

bool MMAP::MMapManager::unloadMap ( uint32  mapId)

Definition at line 269 of file MMapManager.cpp.

◆ unloadMap() [2/2]

bool MMAP::MMapManager::unloadMap ( uint32  mapId,
int32  x,
int32  y 
)

Definition at line 225 of file MMapManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unloadMapInstance()

bool MMAP::MMapManager::unloadMapInstance ( uint32  mapId,
uint32  instanceId 
)

Definition at line 301 of file MMapManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ loadedMMaps

MMapDataSet MMAP::MMapManager::loadedMMaps
private

Definition at line 82 of file MMapManager.h.

◆ loadedTiles

uint32 MMAP::MMapManager::loadedTiles
private

Definition at line 83 of file MMapManager.h.

◆ thread_safe_environment

bool MMAP::MMapManager::thread_safe_environment
private

Definition at line 84 of file MMapManager.h.


The documentation for this class was generated from the following files: