2021-06-29 05:28:17 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "framework.h"
|
|
|
|
|
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-08-11 14:39:26 +01:00
|
|
|
short x{ 0 };
|
|
|
|
short y{ 0 };
|
|
|
|
short z{ 0 };
|
2021-07-17 23:51:01 +01:00
|
|
|
|
2021-08-11 14:39:26 +01:00
|
|
|
GameScriptRotation() = default;
|
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-23 02:06:50 +01:00
|
|
|
|
|
|
|
std::string ToString() const;
|
|
|
|
|
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
|
|
|
};
|