2021-06-29 05:28:17 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "framework.h"
|
|
|
|
|
2021-07-17 23:51:01 +01:00
|
|
|
/***
|
|
|
|
Represents a rotation as a combination of individual
|
|
|
|
angles, in degrees, about each axis.
|
|
|
|
All values will be clamped to [-32768, 32767].
|
|
|
|
@classmod Rotation
|
|
|
|
@pragma nostrip
|
|
|
|
*/
|
2021-07-01 19:25:44 +01:00
|
|
|
namespace sol {
|
|
|
|
class state;
|
|
|
|
}
|
2021-07-03 23:07:21 +01:00
|
|
|
struct PHD_3DPOS;
|
2021-07-01 19:25:44 +01:00
|
|
|
|
2021-06-29 05:28:17 +02:00
|
|
|
class GameScriptRotation {
|
2021-07-03 23:07:21 +01:00
|
|
|
public:
|
2021-07-17 23:51:01 +01:00
|
|
|
/// (int) rotation about x axis
|
|
|
|
//@mem X
|
|
|
|
|
|
|
|
/// (int) rotation about y axis
|
|
|
|
//@mem Y
|
|
|
|
|
|
|
|
/// (int) rotation about z axis
|
|
|
|
//@mem Z
|
|
|
|
|
|
|
|
short x;
|
|
|
|
short y;
|
|
|
|
short z;
|
|
|
|
|
|
|
|
/***
|
|
|
|
@int X rotation about x axis
|
|
|
|
@int Y rotation about y axis
|
|
|
|
@int Z rotation about z axis
|
|
|
|
@return A Rotation object.
|
|
|
|
@function Rotation.new
|
|
|
|
*/
|
2021-06-29 05:28:17 +02:00
|
|
|
|
|
|
|
GameScriptRotation(int x, int y, int z);
|
2021-07-03 23:07:21 +01:00
|
|
|
GameScriptRotation(PHD_3DPOS const& pos);
|
2021-07-03 23:08:46 +01:00
|
|
|
void StoreInPHDPos(PHD_3DPOS& pos) const;
|
|
|
|
|
|
|
|
static void Register(sol::state*);
|
2021-07-03 23:07:21 +01:00
|
|
|
};
|