mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00

These aren't intended (at the moment) to be exposed to the script writer; it's needed so that classes with a GameScriptRotation member can have a default member initialiser.
25 lines
425 B
C++
25 lines
425 B
C++
#pragma once
|
|
|
|
#include "framework.h"
|
|
|
|
namespace sol {
|
|
class state;
|
|
}
|
|
struct PHD_3DPOS;
|
|
|
|
class GameScriptRotation {
|
|
public:
|
|
short x{ 0 };
|
|
short y{ 0 };
|
|
short z{ 0 };
|
|
|
|
GameScriptRotation() = default;
|
|
GameScriptRotation(int x, int y, int z);
|
|
GameScriptRotation(PHD_3DPOS const& pos);
|
|
|
|
std::string ToString() const;
|
|
|
|
void StoreInPHDPos(PHD_3DPOS& pos) const;
|
|
|
|
static void Register(sol::state*);
|
|
};
|