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