19 #ifndef _MMAP_MANAGER_H
20 #define _MMAP_MANAGER_H
28 #include <unordered_map>
60 typedef std::unordered_map<uint32, PhaseTileContainer>
PhaseTileMap;
99 void InitializeThreadUnsafe(std::unordered_map<
uint32, std::vector<uint32>>
const& mapData);
102 bool unloadMap(
uint32 mapId);
103 bool unloadMapInstance(
uint32 mapId,
uint32 instanceId);
113 void LoadPhaseTiles(PhaseChildMapContainer::const_iterator phasedMapData,
int32 x,
int32 y);
114 void UnloadPhaseTile(PhaseChildMapContainer::const_iterator phasedMapData,
int32 x,
int32 y);
117 auto itr = _phaseTiles.find(mapId);
118 if (itr != _phaseTiles.end())
124 bool loadMapData(
uint32 mapId);
127 MMapDataSet::const_iterator GetMMapData(
uint32 mapId)
const;
std::set< uint32 > _activeSwaps
Definition: MMapManager.h:83
std::unordered_map< uint32, MMapData * > MMapDataSet
Definition: MMapManager.h:89
PhaseTileMap _phaseTiles
Definition: MMapManager.h:134
uint32 _mapId
Definition: MMapManager.h:81
int32 dataSize
Definition: MMapManager.h:56
std::unordered_map< uint32, dtNavMeshQuery * > NavMeshQuerySet
Definition: MMapManager.h:36
dtNavMesh * navMesh
Definition: MMapManager.h:44
Definition: MMapFactory.cpp:22
uint32 getLoadedMapsCount() const
Definition: MMapManager.h:110
PhaseChildMapContainer phaseMapData
Definition: MMapManager.h:129
MMapManager()
Definition: MMapManager.h:96
MMapTileSet loadedTileRefs
Definition: MMapManager.h:49
dtNavMesh * navMesh
Definition: MMapManager.h:76
Definition: DetourNavMesh.h:323
#define true
Definition: CascPort.h:17
MMapTileSet loadedTileRefs
Definition: MMapManager.h:77
Definition: MMapManager.h:41
bool thread_safe_environment
Definition: MMapManager.h:131
std::unordered_map< uint32, PhaseTileContainer > PhaseTileMap
Definition: MMapManager.h:60
uint32 loadedTiles
Definition: MMapManager.h:130
std::unordered_map< uint32, PhasedTile * > PhaseTileContainer
Definition: MMapManager.h:59
std::unordered_map< uint32, dtTileRef > MMapTileSet
Definition: MMapManager.h:35
MmapTileHeader fileHeader
Definition: MMapManager.h:55
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
std::unordered_map< uint32, TerrainSet > TerrainSetMap
Definition: MMapManager.h:63
MMapDataSet loadedMMaps
Definition: MMapManager.h:128
#define TC_COMMON_API
Definition: Define.h:116
TerrainSetMap loadedPhasedTiles
Definition: MMapManager.h:78
uint32 getLoadedTilesCount() const
Definition: MMapManager.h:109
Definition: MMapManager.h:65
std::unordered_map< uint32, std::vector< uint32 > > PhaseChildMapContainer
Definition: MMapManager.h:112
PhaseTileContainer _baseTiles
Definition: MMapManager.h:82
Definition: MMapManager.h:93
unsigned char * data
Definition: MMapManager.h:54
std::set< uint32 > TerrainSet
Definition: MMapManager.h:39
TerrainSet terrainIds
Definition: MMapManager.h:47
NavMeshQuerySet navMeshQueries
Definition: MMapManager.h:74
uint32_t uint32
Definition: g3dmath.h:168
G3D::int16 x
Definition: Vector2int16.h:37
Definition: DetourNavMeshQuery.h:153
Definition: MMapManager.h:52
PhaseTileContainer const * GetPhaseTileContainer(uint32 mapId) const
Definition: MMapManager.h:115