mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
c9b8ba7b46
When tile is not found in memory cache try to find it in the database.
37 lines
792 B
C++
37 lines
792 B
C++
#include "preparednavmeshdata.hpp"
|
|
#include "preparednavmeshdatatuple.hpp"
|
|
#include "recast.hpp"
|
|
|
|
#include <Recast.h>
|
|
|
|
namespace
|
|
{
|
|
void initPolyMeshDetail(rcPolyMeshDetail& value) noexcept
|
|
{
|
|
value.meshes = nullptr;
|
|
value.verts = nullptr;
|
|
value.tris = nullptr;
|
|
value.nmeshes = 0;
|
|
value.nverts = 0;
|
|
value.ntris = 0;
|
|
}
|
|
}
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
PreparedNavMeshData::PreparedNavMeshData() noexcept
|
|
{
|
|
initPolyMeshDetail(mPolyMeshDetail);
|
|
}
|
|
|
|
PreparedNavMeshData::~PreparedNavMeshData() noexcept
|
|
{
|
|
freePolyMeshDetail(mPolyMeshDetail);
|
|
}
|
|
|
|
bool operator==(const PreparedNavMeshData& lhs, const PreparedNavMeshData& rhs) noexcept
|
|
{
|
|
return makeTuple(lhs) == makeTuple(rhs);
|
|
}
|
|
}
|