2022-02-18 20:35:09 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_TILESPOSITIONSRANGE_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_TILESPOSITIONSRANGE_H
|
|
|
|
|
|
|
|
#include "tileposition.hpp"
|
|
|
|
|
2022-08-28 14:43:43 +00:00
|
|
|
#include <tuple>
|
|
|
|
|
2022-02-18 20:35:09 +00:00
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
struct TilesPositionsRange
|
|
|
|
{
|
|
|
|
TilePosition mBegin;
|
|
|
|
TilePosition mEnd;
|
|
|
|
};
|
2022-08-28 14:43:43 +00:00
|
|
|
|
|
|
|
inline auto tie(const TilesPositionsRange& value)
|
|
|
|
{
|
|
|
|
return std::tie(value.mBegin, value.mEnd);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool operator==(const TilesPositionsRange& lhs, const TilesPositionsRange& rhs)
|
|
|
|
{
|
|
|
|
return tie(lhs) == tie(rhs);
|
|
|
|
}
|
2022-02-18 20:35:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|