2021-11-04 00:57:27 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_OBJECTTRANSFORM_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_OBJECTTRANSFORM_H
|
|
|
|
|
2024-02-27 19:47:46 +00:00
|
|
|
#include <components/esm/position.hpp>
|
2021-11-04 00:57:27 +00:00
|
|
|
|
|
|
|
#include <tuple>
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
struct ObjectTransform
|
|
|
|
{
|
|
|
|
ESM::Position mPosition;
|
|
|
|
float mScale;
|
|
|
|
|
|
|
|
friend inline auto tie(const ObjectTransform& v) { return std::tie(v.mPosition, v.mScale); }
|
|
|
|
|
|
|
|
friend inline bool operator<(const ObjectTransform& l, const ObjectTransform& r) { return tie(l) < tie(r); }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|