mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-06 19:01:06 +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 "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)
|
||||
{
|
||||
state->new_usertype<GameScriptRotation>("Rotation",
|
||||
sol::constructors<GameScriptRotation(int, int, int)>(),
|
||||
|
||||
/// (int) rotation about x axis
|
||||
//@mem X
|
||||
"X", &GameScriptRotation::x,
|
||||
|
||||
/// (int) rotation about x axis
|
||||
//@mem Y
|
||||
"Y", &GameScriptRotation::y,
|
||||
|
||||
/// (int) rotation about x axis
|
||||
//@mem 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)
|
||||
{
|
||||
x = aX;
|
||||
|
|
|
@ -2,13 +2,6 @@
|
|||
|
||||
#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 {
|
||||
class state;
|
||||
}
|
||||
|
@ -16,27 +9,10 @@ struct PHD_3DPOS;
|
|||
|
||||
class GameScriptRotation {
|
||||
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 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
|
||||
*/
|
||||
|
||||
GameScriptRotation(int x, int y, int z);
|
||||
GameScriptRotation(PHD_3DPOS const& pos);
|
||||
void StoreInPHDPos(PHD_3DPOS& pos) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue