2019-02-16 15:50:58 +03:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVIGATORSTUB_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVIGATORSTUB_H
|
|
|
|
|
|
|
|
#include "navigator.hpp"
|
2022-06-17 00:28:44 +02:00
|
|
|
#include "settings.hpp"
|
2022-08-28 14:52:12 +02:00
|
|
|
#include "stats.hpp"
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-05-05 18:13:17 +02:00
|
|
|
namespace Loading
|
|
|
|
{
|
|
|
|
class Listener;
|
|
|
|
}
|
|
|
|
|
2019-02-16 15:50:58 +03:00
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
2019-02-19 11:46:00 +03:00
|
|
|
class NavigatorStub final : public Navigator
|
2019-02-16 15:50:58 +03:00
|
|
|
{
|
2019-02-19 11:46:00 +03:00
|
|
|
public:
|
2019-02-16 15:50:58 +03:00
|
|
|
NavigatorStub() = default;
|
|
|
|
|
2022-06-17 00:28:44 +02:00
|
|
|
void addAgent(const AgentBounds& /*agentBounds*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2022-06-17 00:28:44 +02:00
|
|
|
void removeAgent(const AgentBounds& /*agentBounds*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-07-09 22:51:42 +02:00
|
|
|
void setWorldspace(std::string_view /*worldspace*/) override {}
|
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void addObject(const ObjectId /*id*/, const ObjectShapes& /*shapes*/, const btTransform& /*transform*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void addObject(const ObjectId /*id*/, const DoorShapes& /*shapes*/, const btTransform& /*transform*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void updateObject(const ObjectId /*id*/, const ObjectShapes& /*shapes*/, const btTransform& /*transform*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void updateObject(const ObjectId /*id*/, const DoorShapes& /*shapes*/, const btTransform& /*transform*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void removeObject(const ObjectId /*id*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void addWater(const osg::Vec2i& /*cellPosition*/, int /*cellSize*/, float /*level*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void removeWater(const osg::Vec2i& /*cellPosition*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void addHeightfield(const osg::Vec2i& /*cellPosition*/, int /*cellSize*/, const HeightfieldShape& /*height*/)
|
|
|
|
override {}
|
2021-07-14 20:57:52 +02:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
void removeHeightfield(const osg::Vec2i& /*cellPosition*/) override {}
|
2021-07-14 20:57:52 +02:00
|
|
|
|
2020-10-22 23:57:53 +02:00
|
|
|
void addPathgrid(const ESM::Cell& /*cell*/, const ESM::Pathgrid& /*pathgrid*/) override {}
|
2020-06-11 23:23:30 +02:00
|
|
|
|
2020-10-22 23:57:53 +02:00
|
|
|
void removePathgrid(const ESM::Pathgrid& /*pathgrid*/) override {}
|
2020-06-11 23:23:30 +02:00
|
|
|
|
2019-02-16 15:50:58 +03:00
|
|
|
void update(const osg::Vec3f& /*playerPosition*/) override {}
|
|
|
|
|
2022-02-01 01:21:47 +01:00
|
|
|
void updateBounds(const osg::Vec3f& /*playerPosition*/) override {}
|
|
|
|
|
2021-05-14 21:06:29 +02:00
|
|
|
void wait(Loading::Listener& /*listener*/, WaitConditionType /*waitConditionType*/) override {}
|
2019-02-16 15:50:58 +03:00
|
|
|
|
2022-06-17 00:28:44 +02:00
|
|
|
SharedNavMeshCacheItem getNavMesh(const AgentBounds& /*agentBounds*/) const override
|
2019-02-16 15:50:58 +03:00
|
|
|
{
|
2019-02-19 11:46:00 +03:00
|
|
|
return mEmptyNavMeshCacheItem;
|
2019-02-16 15:50:58 +03:00
|
|
|
}
|
|
|
|
|
2022-06-17 00:28:44 +02:00
|
|
|
std::map<AgentBounds, SharedNavMeshCacheItem> getNavMeshes() const override
|
2019-02-16 15:50:58 +03:00
|
|
|
{
|
2022-06-17 00:28:44 +02:00
|
|
|
return {};
|
2019-02-16 15:50:58 +03:00
|
|
|
}
|
|
|
|
|
2019-02-19 11:46:00 +03:00
|
|
|
const Settings& getSettings() const override
|
2019-02-16 15:50:58 +03:00
|
|
|
{
|
2019-02-19 11:46:00 +03:00
|
|
|
return mDefaultSettings;
|
2019-02-16 15:50:58 +03:00
|
|
|
}
|
2019-02-19 11:46:00 +03:00
|
|
|
|
2022-08-28 14:52:12 +02:00
|
|
|
Stats getStats() const override { return Stats {}; }
|
2019-03-17 20:18:53 +03:00
|
|
|
|
2021-10-09 18:36:37 +02:00
|
|
|
RecastMeshTiles getRecastMeshTiles() const override
|
2019-11-27 23:45:01 +01:00
|
|
|
{
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|
2021-03-23 23:15:13 +01:00
|
|
|
float getMaxNavmeshAreaRealRadius() const override
|
|
|
|
{
|
|
|
|
return std::numeric_limits<float>::max();
|
|
|
|
}
|
|
|
|
|
2019-02-19 11:46:00 +03:00
|
|
|
private:
|
|
|
|
Settings mDefaultSettings {};
|
|
|
|
SharedNavMeshCacheItem mEmptyNavMeshCacheItem;
|
2019-02-16 15:50:58 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|