2018-09-30 22:33:25 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_OFFMESHCONNECTION_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_OFFMESHCONNECTION_H
|
|
|
|
|
2020-06-11 21:23:30 +00:00
|
|
|
#include "areatype.hpp"
|
|
|
|
|
2018-09-30 22:33:25 +00:00
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
2021-02-03 23:14:29 +00:00
|
|
|
#include <tuple>
|
|
|
|
|
2018-09-30 22:33:25 +00:00
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
struct OffMeshConnection
|
|
|
|
{
|
|
|
|
osg::Vec3f mStart;
|
|
|
|
osg::Vec3f mEnd;
|
2020-06-11 21:23:30 +00:00
|
|
|
AreaType mAreaType;
|
2018-09-30 22:33:25 +00:00
|
|
|
};
|
2021-02-03 23:14:29 +00:00
|
|
|
|
|
|
|
inline bool operator<(const OffMeshConnection& lhs, const OffMeshConnection& rhs)
|
|
|
|
{
|
|
|
|
return std::tie(lhs.mStart, lhs.mEnd, lhs.mAreaType) < std::tie(rhs.mStart, rhs.mEnd, rhs.mAreaType);
|
|
|
|
}
|
2018-09-30 22:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|