mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
764 B
C++
33 lines
764 B
C++
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESHPROVIDER_H
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESHPROVIDER_H
|
|
|
|
#include "tileposition.hpp"
|
|
#include "recastmesh.hpp"
|
|
#include "tilecachedrecastmeshmanager.hpp"
|
|
|
|
#include <functional>
|
|
#include <memory>
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
class RecastMesh;
|
|
|
|
class RecastMeshProvider
|
|
{
|
|
public:
|
|
RecastMeshProvider(TileCachedRecastMeshManager& impl)
|
|
: mImpl(impl)
|
|
{}
|
|
|
|
std::shared_ptr<RecastMesh> getMesh(std::string_view worldspace, const TilePosition& tilePosition) const
|
|
{
|
|
return mImpl.get().getNewMesh(worldspace, tilePosition);
|
|
}
|
|
|
|
private:
|
|
std::reference_wrapper<TileCachedRecastMeshManager> mImpl;
|
|
};
|
|
}
|
|
|
|
#endif
|