|
|
@ -1,8 +1,10 @@
|
|
|
|
#include "tilecachedrecastmeshmanager.hpp"
|
|
|
|
#include "tilecachedrecastmeshmanager.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include "changetype.hpp"
|
|
|
|
#include "changetype.hpp"
|
|
|
|
#include "gettilespositions.hpp"
|
|
|
|
#include "gettilespositions.hpp"
|
|
|
|
#include "recastmeshbuilder.hpp"
|
|
|
|
#include "recastmeshbuilder.hpp"
|
|
|
|
#include "settingsutils.hpp"
|
|
|
|
#include "settingsutils.hpp"
|
|
|
|
|
|
|
|
#include "stats.hpp"
|
|
|
|
#include "updateguard.hpp"
|
|
|
|
#include "updateguard.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/bullethelpers/aabb.hpp>
|
|
|
|
#include <components/bullethelpers/aabb.hpp>
|
|
|
@ -11,7 +13,6 @@
|
|
|
|
#include <boost/geometry/geometry.hpp>
|
|
|
|
#include <boost/geometry/geometry.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include <limits>
|
|
|
|
#include <limits>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -429,6 +430,17 @@ namespace DetourNavigator
|
|
|
|
return std::move(mChangedTiles);
|
|
|
|
return std::move(mChangedTiles);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TileCachedRecastMeshManagerStats TileCachedRecastMeshManager::getStats() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const std::lock_guard lock(mMutex);
|
|
|
|
|
|
|
|
return TileCachedRecastMeshManagerStats{
|
|
|
|
|
|
|
|
.mTiles = mCache.size(),
|
|
|
|
|
|
|
|
.mObjects = mObjects.size(),
|
|
|
|
|
|
|
|
.mHeightfields = mHeightfields.size(),
|
|
|
|
|
|
|
|
.mWater = mWater.size(),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TileCachedRecastMeshManager::IndexPoint TileCachedRecastMeshManager::makeIndexPoint(
|
|
|
|
TileCachedRecastMeshManager::IndexPoint TileCachedRecastMeshManager::makeIndexPoint(
|
|
|
|
const TilePosition& tilePosition)
|
|
|
|
const TilePosition& tilePosition)
|
|
|
|
{
|
|
|
|
{
|
|
|
|