mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11910] Implement loading for MMap Generator
This commit is contained in:
parent
d3606fb4ee
commit
df3a5f2808
8 changed files with 48 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include "DBCStores.h"
|
||||
#include "GridMap.h"
|
||||
#include "VMapFactory.h"
|
||||
#include "MoveMap.h"
|
||||
#include "World.h"
|
||||
#include "Policies/SingletonImp.h"
|
||||
#include "Util.h"
|
||||
|
|
@ -645,6 +646,7 @@ TerrainInfo::~TerrainInfo()
|
|||
delete m_GridMaps[i][k];
|
||||
|
||||
VMAP::VMapFactory::createOrGetVMapManager()->unloadMap(m_mapId);
|
||||
MMAP::MMapFactory::createOrGetMMapManager()->unloadMap(m_mapId);
|
||||
}
|
||||
|
||||
GridMap * TerrainInfo::Load(const uint32 x, const uint32 y)
|
||||
|
|
@ -705,6 +707,9 @@ void TerrainInfo::CleanUpGrids(const uint32 diff)
|
|||
|
||||
//unload VMAPS...
|
||||
VMAP::VMapFactory::createOrGetVMapManager()->unloadMap(m_mapId, x, y);
|
||||
|
||||
//unload mmap...
|
||||
MMAP::MMapFactory::createOrGetMMapManager()->unloadMap(m_mapId, x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1088,6 +1093,9 @@ GridMap * TerrainInfo::LoadMapAndVMap( const uint32 x, const uint32 y )
|
|||
DEBUG_LOG("Ignored VMAP name:%s, id:%d, x:%d, y:%d (vmap rep.: x:%d, y:%d)", mapName, m_mapId, x,y,x,y);
|
||||
break;
|
||||
}
|
||||
|
||||
// load navmesh
|
||||
MMAP::MMapFactory::createOrGetMMapManager()->loadMap(m_mapId, x, y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue