mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 00:15:06 +00:00
d15e1dca84
Instead of storing a set of objects per tile.
28 lines
573 B
C++
28 lines
573 B
C++
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_TILESPOSITIONSRANGE_H
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_TILESPOSITIONSRANGE_H
|
|
|
|
#include "tileposition.hpp"
|
|
|
|
#include <tuple>
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
struct TilesPositionsRange
|
|
{
|
|
TilePosition mBegin;
|
|
TilePosition mEnd;
|
|
};
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
#endif
|