2021-11-04 01:57:27 +01:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_OBJECTTRANSFORM_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_OBJECTTRANSFORM_H
|
|
|
|
|
|
|
|
#include <components/esm/defs.hpp>
|
|
|
|
|
|
|
|
#include <tuple>
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
struct ObjectTransform
|
|
|
|
{
|
|
|
|
ESM::Position mPosition;
|
|
|
|
float mScale;
|
|
|
|
|
2022-09-22 21:26:05 +03:00
|
|
|
friend inline auto tie(const ObjectTransform& v) { return std::tie(v.mPosition, v.mScale); }
|
2021-11-04 01:57:27 +01:00
|
|
|
|
2022-09-22 21:26:05 +03:00
|
|
|
friend inline bool operator<(const ObjectTransform& l, const ObjectTransform& r) { return tie(l) < tie(r); }
|
2021-11-04 01:57:27 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|