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.
26 lines
559 B
C++
26 lines
559 B
C++
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_OFFMESHCONNECTION_H
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_OFFMESHCONNECTION_H
|
|
|
|
#include "areatype.hpp"
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
#include <tuple>
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
struct OffMeshConnection
|
|
{
|
|
osg::Vec3f mStart;
|
|
osg::Vec3f mEnd;
|
|
AreaType mAreaType;
|
|
};
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
#endif
|