mirror of https://github.com/OpenMW/openmw.git
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.
28 lines
584 B
C++
28 lines
584 B
C++
3 years ago
|
#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;
|
||
|
|
||
|
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
|