2017-01-26 13:48:47 +00:00
|
|
|
#ifndef OPENMW_POSITIONAPI_HPP
|
|
|
|
#define OPENMW_POSITIONAPI_HPP
|
|
|
|
|
|
|
|
#include "../Types.hpp"
|
|
|
|
|
|
|
|
#define POSITIONAPI \
|
|
|
|
{"GetPos", PositionFunctions::GetPos},\
|
|
|
|
{"GetPosX", PositionFunctions::GetPosX},\
|
|
|
|
{"GetPosY", PositionFunctions::GetPosY},\
|
|
|
|
{"GetPosZ", PositionFunctions::GetPosZ},\
|
2017-06-10 14:06:09 +00:00
|
|
|
\
|
|
|
|
{"GetRot", PositionFunctions::GetRot},\
|
|
|
|
{"GetRotX", PositionFunctions::GetRotX},\
|
|
|
|
{"GetRotZ", PositionFunctions::GetRotZ},\
|
|
|
|
\
|
2017-01-26 13:48:47 +00:00
|
|
|
{"SetPos", PositionFunctions::SetPos},\
|
2017-06-10 14:06:09 +00:00
|
|
|
{"SetRot", PositionFunctions::SetRot},\
|
|
|
|
\
|
2017-01-26 14:10:45 +00:00
|
|
|
{"SendPos", PositionFunctions::SendPos}
|
2017-01-26 13:48:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
class PositionFunctions
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void GetPos(unsigned short pid, float *x, float *y, float *z) noexcept;
|
|
|
|
static double GetPosX(unsigned short pid) noexcept;
|
|
|
|
static double GetPosY(unsigned short pid) noexcept;
|
|
|
|
static double GetPosZ(unsigned short pid) noexcept;
|
|
|
|
|
2017-06-10 14:06:09 +00:00
|
|
|
static void GetRot(unsigned short pid, float *x, float *y, float *z) noexcept;
|
|
|
|
static double GetRotX(unsigned short pid) noexcept;
|
|
|
|
static double GetRotZ(unsigned short pid) noexcept;
|
2017-01-26 13:48:47 +00:00
|
|
|
|
|
|
|
static void SetPos(unsigned short pid, double x, double y, double z) noexcept;
|
2017-06-10 14:06:09 +00:00
|
|
|
static void SetRot(unsigned short pid, double x, double z) noexcept;
|
2017-01-26 13:48:47 +00:00
|
|
|
|
|
|
|
static void SendPos(unsigned short pid) noexcept;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //OPENMW_POSITIONAPI_HPP
|