mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 09:23:53 +00:00
22 lines
523 B
C++
22 lines
523 B
C++
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVMESHCACHEITEM_H
|
||
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVMESHCACHEITEM_H
|
||
|
|
||
|
#include "sharednavmesh.hpp"
|
||
|
|
||
|
#include <atomic>
|
||
|
|
||
|
namespace DetourNavigator
|
||
|
{
|
||
|
struct NavMeshCacheItem
|
||
|
{
|
||
|
SharedNavMesh mValue;
|
||
|
std::size_t mRecastMeshRevision;
|
||
|
std::atomic_size_t mNavMeshRevision;
|
||
|
|
||
|
NavMeshCacheItem(const NavMeshPtr& value, std::size_t revision)
|
||
|
: mValue(value), mRecastMeshRevision(revision), mNavMeshRevision(0) {}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|