mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 08:49:55 +00:00
30 lines
1,000 B
C++
30 lines
1,000 B
C++
#ifndef OPENMW_CELLAPI_HPP
|
|
#define OPENMW_CELLAPI_HPP
|
|
|
|
#include "../Types.hpp"
|
|
|
|
#define POSITIONAPI \
|
|
{"GetCell", CellFunctions::GetCell},\
|
|
{"SetCell", CellFunctions::SetCell},\
|
|
{"SetExterior", CellFunctions::SetExterior},\
|
|
{"GetExteriorX", CellFunctions::GetExteriorX},\
|
|
{"GetExteriorY", CellFunctions::GetExteriorY},\
|
|
{"IsInExterior", CellFunctions::IsInExterior},\
|
|
\
|
|
{"SendCell", CellFunctions::SendCell}
|
|
|
|
|
|
class CellFunctions
|
|
{
|
|
public:
|
|
static const char *GetCell(unsigned short pid) noexcept;
|
|
static void SetCell(unsigned short pid, const char *name) noexcept;
|
|
static void SetExterior(unsigned short pid, int x, int y) noexcept;
|
|
static int GetExteriorX(unsigned short pid) noexcept;
|
|
static int GetExteriorY(unsigned short pid) noexcept;
|
|
static bool IsInExterior(unsigned short pid) noexcept;
|
|
|
|
static void SendCell(unsigned short pid) noexcept;
|
|
};
|
|
|
|
#endif //OPENMW_CELLAPI_HPP
|