mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00
39 lines
527 B
C++
39 lines
527 B
C++
![]() |
#include "framework.h"
|
||
|
#include "GameScriptRotation.h"
|
||
|
|
||
|
GameScriptRotation::GameScriptRotation(int x, int y, int z)
|
||
|
{
|
||
|
SetX(x);
|
||
|
SetY(y);
|
||
|
SetZ(z);
|
||
|
}
|
||
|
|
||
|
int GameScriptRotation::GetX()
|
||
|
{
|
||
|
return x;
|
||
|
}
|
||
|
|
||
|
void GameScriptRotation::SetX(int x)
|
||
|
{
|
||
|
this->x = std::clamp(x, -360, 360);
|
||
|
}
|
||
|
|
||
|
int GameScriptRotation::GetY()
|
||
|
{
|
||
|
return y;
|
||
|
}
|
||
|
|
||
|
void GameScriptRotation::SetY(int y)
|
||
|
{
|
||
|
this->y = std::clamp(y, -360, 360);
|
||
|
}
|
||
|
|
||
|
int GameScriptRotation::GetZ()
|
||
|
{
|
||
|
return z;
|
||
|
}
|
||
|
|
||
|
void GameScriptRotation::SetZ(int z)
|
||
|
{
|
||
|
this->z = std::clamp(z, -360, 360);
|
||
|
}
|