AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GridTerrainUnloader Class Reference

#include "GridTerrainLoader.h"

Public Member Functions

 GridTerrainUnloader (MapGridType &grid, Map *map)
 
void UnloadTerrain ()
 

Private Attributes

MapGridType_grid
 
Map_map
 

Detailed Description

Constructor & Destructor Documentation

◆ GridTerrainUnloader()

GridTerrainUnloader::GridTerrainUnloader ( MapGridType grid,
Map map 
)
inline
47 : _grid(grid), _map(map) { }
MapGridType & _grid
Definition GridTerrainLoader.h:52
Map * _map
Definition GridTerrainLoader.h:53

Member Function Documentation

◆ UnloadTerrain()

void GridTerrainUnloader::UnloadTerrain ( )
150{
151 // Only parent maps manage terrain data
152 if (_map->GetInstanceId() != 0)
153 return;
154
157}
static MMapMgr * createOrGetMMapMgr()
Definition MMapFactory.cpp:27
bool unloadMap(uint32 mapId, int32 x, int32 y)
Definition MMapMgr.cpp:204
uint16 GetX() const
Definition MapGrid.h:42
uint16 GetY() const
Definition MapGrid.h:43
uint32 GetId() const
Definition Map.h:229
uint32 GetInstanceId() const
Definition Map.h:266
static VMapMgr2 * createOrGetVMapMgr()
Definition VMapFactory.cpp:27
void unloadMap(unsigned int mapId, int x, int y) override
Definition VMapMgr2.cpp:160

References _grid, _map, MMAP::MMapFactory::createOrGetMMapMgr(), VMAP::VMapFactory::createOrGetVMapMgr(), Map::GetId(), Map::GetInstanceId(), MapGrid< WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetX(), MapGrid< WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetY(), MMAP::MMapMgr::unloadMap(), and VMAP::VMapMgr2::unloadMap().

Referenced by MapGridManager::UnloadGrid().

Member Data Documentation

◆ _grid

MapGridType& GridTerrainUnloader::_grid
private

Referenced by UnloadTerrain().

◆ _map

Map* GridTerrainUnloader::_map
private

Referenced by UnloadTerrain().


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