495 uint32 y = (packedXY & 0x0000FFFF);
499 TC_LOG_DEBUG(
"phase",
"MMapData::AddSwap: phased mmtile %04u[%02i, %02i] load skipped, due to not loaded base tile on map %u", swap, x, y,
_mapId);
504 TC_LOG_DEBUG(
"phase",
"MMapData::AddSwap: WARNING! phased mmtile %04u[%02i, %02i] load skipped, due to already loaded on map %u", swap, x, y,
_mapId);
515 TC_LOG_DEBUG(
"phase",
"MMapData::AddSwap: phased mmtile %04u[%02i, %02i] load skipped, due to not loaded base tile ref on map %u", swap, x, y,
_mapId);
520 header->
x = oldTile->header->x;
521 header->
y = oldTile->header->y;
524 PhasedTile* pt =
new PhasedTile();
528 TC_LOG_ERROR(
"phase",
"MMapData::AddSwap: Could not unload %04u%02i%02i.mmtile from navmesh",
_mapId, x, y);
533 TC_LOG_DEBUG(
"phase",
"MMapData::AddSwap: Unloaded %04u%02i%02i.mmtile from navmesh",
_mapId, x, y);
545 TC_LOG_DEBUG(
"phase",
"MMapData::AddSwap: Loaded phased mmtile %04u[%02i, %02i] into %04i[%02i, %02i]", swap, x, y,
_mapId, header->
x, header->
y);
548 TC_LOG_ERROR(
"phase",
"MMapData::AddSwap: Could not load %04u%02i%02i.mmtile to navmesh", swap, x, y);
std::set< uint32 > _activeSwaps
Definition: MMapManager.h:83
uint32 _mapId
Definition: MMapManager.h:81
dtStatus addTile(unsigned char *data, int dataSize, int flags, dtTileRef lastRef, dtTileRef *result)
Definition: DetourNavMesh.cpp:834
const dtMeshTile * getTileByRef(dtTileRef ref) const
Definition: DetourNavMesh.cpp:1078
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
dtNavMesh * navMesh
Definition: MMapManager.h:76
MMapTileSet loadedTileRefs
Definition: MMapManager.h:77
bool dtStatusSucceed(dtStatus status)
Definition: DetourStatus.h:41
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
bool dtStatusFailed(dtStatus status)
Definition: DetourStatus.h:47
TerrainSetMap loadedPhasedTiles
Definition: MMapManager.h:78
PhaseTileContainer _baseTiles
Definition: MMapManager.h:82
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
G3D::int16 x
Definition: Vector2int16.h:37
Definition: DetourNavMesh.h:279
dtStatus removeTile(dtTileRef ref, unsigned char **data, int *dataSize)
Definition: DetourNavMesh.cpp:1156