2018-04-16 19:57:35 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVMESHCACHEITEM_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVMESHCACHEITEM_H
|
|
|
|
|
|
|
|
#include "sharednavmesh.hpp"
|
|
|
|
|
|
|
|
#include <atomic>
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
struct NavMeshCacheItem
|
|
|
|
{
|
|
|
|
SharedNavMesh mValue;
|
2018-04-21 13:09:49 +00:00
|
|
|
std::size_t mGeneration;
|
2018-04-16 19:57:35 +00:00
|
|
|
std::atomic_size_t mNavMeshRevision;
|
|
|
|
|
2018-04-15 22:07:18 +00:00
|
|
|
NavMeshCacheItem(const NavMeshPtr& value, std::size_t generation)
|
|
|
|
: mValue(value), mGeneration(generation), mNavMeshRevision(0) {}
|
2018-04-16 19:57:35 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|