2021-06-29 05:28:17 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "framework.h"
|
|
|
|
|
2021-07-17 23:51:01 +01:00
|
|
|
/***
|
|
|
|
Represents a position in the game world.
|
|
|
|
@classmod Position
|
|
|
|
@pragma nostrip
|
|
|
|
*/
|
2021-07-01 19:20:59 +01:00
|
|
|
namespace sol {
|
|
|
|
class state;
|
|
|
|
}
|
2021-07-03 23:07:21 +01:00
|
|
|
struct PHD_3DPOS;
|
2021-07-01 19:20:59 +01:00
|
|
|
|
2021-06-29 05:28:17 +02:00
|
|
|
class GameScriptPosition {
|
2021-07-03 23:07:21 +01:00
|
|
|
public:
|
2021-07-17 23:51:01 +01:00
|
|
|
/// (int) x coordinate
|
|
|
|
//@mem X
|
|
|
|
|
|
|
|
/// (int) y coordinate
|
|
|
|
//@mem Y
|
|
|
|
|
|
|
|
/// (int) z coordinate
|
|
|
|
//@mem Z
|
2021-06-29 05:28:17 +02:00
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int z;
|
|
|
|
|
2021-07-17 23:51:01 +01:00
|
|
|
/***
|
|
|
|
@int X x coordinate
|
|
|
|
@int Y y coordinate
|
|
|
|
@int Z z coordinate
|
|
|
|
@return A Position object.
|
|
|
|
@function Position.new
|
|
|
|
*/
|
2021-06-29 05:28:17 +02:00
|
|
|
GameScriptPosition(int x, int y, int z);
|
2021-07-03 23:07:21 +01:00
|
|
|
GameScriptPosition(PHD_3DPOS const& pos);
|
|
|
|
void StoreInPHDPos(PHD_3DPOS& pos) const;
|
2021-07-03 23:08:46 +01:00
|
|
|
|
|
|
|
static void Register(sol::state*);
|
2021-07-03 23:07:21 +01:00
|
|
|
};
|