mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-08 03:28:03 +03:00
Move documentation from GameScriptRotation.h to ".cpp.
This commit is contained in:
parent
f6ff21bda2
commit
2d1b9c8178
2 changed files with 24 additions and 25 deletions
|
@ -2,17 +2,40 @@
|
||||||
#include "GameScriptRotation.h"
|
#include "GameScriptRotation.h"
|
||||||
#include "phd_global.h"
|
#include "phd_global.h"
|
||||||
|
|
||||||
|
/***
|
||||||
|
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
|
||||||
|
*/
|
||||||
|
|
||||||
void GameScriptRotation::Register(sol::state* state)
|
void GameScriptRotation::Register(sol::state* state)
|
||||||
{
|
{
|
||||||
state->new_usertype<GameScriptRotation>("Rotation",
|
state->new_usertype<GameScriptRotation>("Rotation",
|
||||||
sol::constructors<GameScriptRotation(int, int, int)>(),
|
sol::constructors<GameScriptRotation(int, int, int)>(),
|
||||||
|
|
||||||
|
/// (int) rotation about x axis
|
||||||
|
//@mem X
|
||||||
"X", &GameScriptRotation::x,
|
"X", &GameScriptRotation::x,
|
||||||
|
|
||||||
|
/// (int) rotation about x axis
|
||||||
|
//@mem Y
|
||||||
"Y", &GameScriptRotation::y,
|
"Y", &GameScriptRotation::y,
|
||||||
|
|
||||||
|
/// (int) rotation about x axis
|
||||||
|
//@mem Z
|
||||||
"Z", &GameScriptRotation::z
|
"Z", &GameScriptRotation::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
|
||||||
|
*/
|
||||||
GameScriptRotation::GameScriptRotation(int aX, int aY, int aZ)
|
GameScriptRotation::GameScriptRotation(int aX, int aY, int aZ)
|
||||||
{
|
{
|
||||||
x = aX;
|
x = aX;
|
||||||
|
|
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
#include "framework.h"
|
#include "framework.h"
|
||||||
|
|
||||||
/***
|
|
||||||
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
|
|
||||||
*/
|
|
||||||
namespace sol {
|
namespace sol {
|
||||||
class state;
|
class state;
|
||||||
}
|
}
|
||||||
|
@ -16,27 +9,10 @@ struct PHD_3DPOS;
|
||||||
|
|
||||||
class GameScriptRotation {
|
class GameScriptRotation {
|
||||||
public:
|
public:
|
||||||
/// (int) rotation about x axis
|
|
||||||
//@mem X
|
|
||||||
|
|
||||||
/// (int) rotation about y axis
|
|
||||||
//@mem Y
|
|
||||||
|
|
||||||
/// (int) rotation about z axis
|
|
||||||
//@mem Z
|
|
||||||
|
|
||||||
short x;
|
short x;
|
||||||
short y;
|
short y;
|
||||||
short z;
|
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
|
|
||||||
*/
|
|
||||||
|
|
||||||
GameScriptRotation(int x, int y, int z);
|
GameScriptRotation(int x, int y, int z);
|
||||||
GameScriptRotation(PHD_3DPOS const& pos);
|
GameScriptRotation(PHD_3DPOS const& pos);
|
||||||
void StoreInPHDPos(PHD_3DPOS& pos) const;
|
void StoreInPHDPos(PHD_3DPOS& pos) const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue