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.
84 lines
2.4 KiB
C++
84 lines
2.4 KiB
C++
6 years ago
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVIGATORSTUB_H
|
||
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVIGATORSTUB_H
|
||
|
|
||
|
#include "navigator.hpp"
|
||
|
|
||
|
namespace DetourNavigator
|
||
|
{
|
||
|
struct NavigatorStub final : public Navigator
|
||
|
{
|
||
|
NavigatorStub() = default;
|
||
|
|
||
|
void addAgent(const osg::Vec3f& /*agentHalfExtents*/) override {}
|
||
|
|
||
|
void removeAgent(const osg::Vec3f& /*agentHalfExtents*/) override {}
|
||
|
|
||
|
bool addObject(const ObjectId /*id*/, const btCollisionShape& /*shape*/, const btTransform& /*transform*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool addObject(const ObjectId /*id*/, const ObjectShapes& /*shapes*/, const btTransform& /*transform*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool addObject(const ObjectId /*id*/, const DoorShapes& /*shapes*/, const btTransform& /*transform*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool updateObject(const ObjectId /*id*/, const btCollisionShape& /*shape*/, const btTransform& /*transform*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool updateObject(const ObjectId /*id*/, const ObjectShapes& /*shapes*/, const btTransform& /*transform*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool updateObject(const ObjectId /*id*/, const DoorShapes& /*shapes*/, const btTransform& /*transform*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool removeObject(const ObjectId /*id*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool addWater(const osg::Vec2i& /*cellPosition*/, const int /*cellSize*/, const btScalar /*level*/,
|
||
|
const btTransform& /*transform*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool removeWater(const osg::Vec2i& /*cellPosition*/) override
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
void update(const osg::Vec3f& /*playerPosition*/) override {}
|
||
|
|
||
|
void wait() override {}
|
||
|
|
||
|
SharedNavMeshCacheItem getNavMesh(const osg::Vec3f& /*agentHalfExtents*/) const override
|
||
|
{
|
||
|
return SharedNavMeshCacheItem();
|
||
|
}
|
||
|
|
||
|
std::map<osg::Vec3f, SharedNavMeshCacheItem> getNavMeshes() const override
|
||
|
{
|
||
|
return std::map<osg::Vec3f, SharedNavMeshCacheItem>();
|
||
|
}
|
||
|
|
||
|
Settings getSettings() const override
|
||
|
{
|
||
|
return Settings {};
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|