mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-05 15:55:45 +00:00
34 lines
746 B
C++
34 lines
746 B
C++
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESHPROVIDER_H
|
||
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESHPROVIDER_H
|
||
|
|
||
|
#include "tileposition.hpp"
|
||
|
#include "recastmesh.hpp"
|
||
|
#include "tilecachedrecastmeshmanager.hpp"
|
||
|
#include "version.hpp"
|
||
|
|
||
|
#include <functional>
|
||
|
#include <memory>
|
||
|
|
||
|
namespace DetourNavigator
|
||
|
{
|
||
|
class RecastMesh;
|
||
|
|
||
|
class RecastMeshProvider
|
||
|
{
|
||
|
public:
|
||
|
RecastMeshProvider(TileCachedRecastMeshManager& impl)
|
||
|
: mImpl(impl)
|
||
|
{}
|
||
|
|
||
|
std::shared_ptr<RecastMesh> getMesh(const TilePosition& tilePosition) const
|
||
|
{
|
||
|
return mImpl.get().getNewMesh(tilePosition);
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
std::reference_wrapper<TileCachedRecastMeshManager> mImpl;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|