1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 18:59:57 +00:00
openmw/components/detournavigator/navigatorstub.hpp

96 lines
3.2 KiB
C++
Raw Normal View History

#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVIGATORSTUB_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVIGATORSTUB_H
#include "navigator.hpp"
#include "settings.hpp"
#include "stats.hpp"
namespace Loading
{
class Listener;
}
namespace DetourNavigator
{
class NavigatorStub final : public Navigator
{
public:
NavigatorStub() = default;
std::unique_ptr<const UpdateGuard> makeUpdateGuard() override { return nullptr; }
void addAgent(const AgentBounds& /*agentBounds*/) override {}
void removeAgent(const AgentBounds& /*agentBounds*/) override {}
void setWorldspace(std::string_view /*worldspace*/, const UpdateGuard* /*guard*/) override {}
void addObject(const ObjectId /*id*/, const ObjectShapes& /*shapes*/, const btTransform& /*transform*/,
2022-09-22 18:26:05 +00:00
const UpdateGuard* /*guard*/) override
{
}
void addObject(const ObjectId /*id*/, const DoorShapes& /*shapes*/, const btTransform& /*transform*/,
2022-09-22 18:26:05 +00:00
const UpdateGuard* /*guard*/) override
{
}
void updateObject(const ObjectId /*id*/, const ObjectShapes& /*shapes*/, const btTransform& /*transform*/,
2022-09-22 18:26:05 +00:00
const UpdateGuard* /*guard*/) override
{
}
void updateObject(const ObjectId /*id*/, const DoorShapes& /*shapes*/, const btTransform& /*transform*/,
2022-09-22 18:26:05 +00:00
const UpdateGuard* /*guard*/) override
{
}
void removeObject(const ObjectId /*id*/, const UpdateGuard* /*guard*/) override {}
void addWater(const osg::Vec2i& /*cellPosition*/, int /*cellSize*/, float /*level*/,
2022-09-22 18:26:05 +00:00
const UpdateGuard* /*guard*/) override
{
}
void removeWater(const osg::Vec2i& /*cellPosition*/, const UpdateGuard* /*guard*/) override {}
void addHeightfield(const osg::Vec2i& /*cellPosition*/, int /*cellSize*/, const HeightfieldShape& /*height*/,
2022-09-22 18:26:05 +00:00
const UpdateGuard* /*guard*/) override
{
}
void removeHeightfield(const osg::Vec2i& /*cellPosition*/, const UpdateGuard* /*guard*/) override {}
void addPathgrid(const ESM::Cell& /*cell*/, const ESM::Pathgrid& /*pathgrid*/) override {}
void removePathgrid(const ESM::Pathgrid& /*pathgrid*/) override {}
void update(const osg::Vec3f& /*playerPosition*/, const UpdateGuard* /*guard*/) override {}
void updateBounds(const osg::Vec3f& /*playerPosition*/, const UpdateGuard* /*guard*/) override {}
void wait(WaitConditionType /*waitConditionType*/, Loading::Listener* /*listener*/) override {}
SharedNavMeshCacheItem getNavMesh(const AgentBounds& /*agentBounds*/) const override
{
return mEmptyNavMeshCacheItem;
}
2022-09-22 18:26:05 +00:00
std::map<AgentBounds, SharedNavMeshCacheItem> getNavMeshes() const override { return {}; }
2022-09-22 18:26:05 +00:00
const Settings& getSettings() const override { return mDefaultSettings; }
2022-09-22 18:26:05 +00:00
Stats getStats() const override { return Stats{}; }
2019-03-17 17:18:53 +00:00
2022-09-22 18:26:05 +00:00
RecastMeshTiles getRecastMeshTiles() const override { return {}; }
2019-11-27 22:45:01 +00:00
2022-09-22 18:26:05 +00:00
float getMaxNavmeshAreaRealRadius() const override { return std::numeric_limits<float>::max(); }
private:
2022-09-22 18:26:05 +00:00
Settings mDefaultSettings{};
SharedNavMeshCacheItem mEmptyNavMeshCacheItem;
};
}
#endif