2017-01-26 14:10:45 +00:00
|
|
|
#ifndef OPENMW_CELLAPI_HPP
|
|
|
|
#define OPENMW_CELLAPI_HPP
|
|
|
|
|
|
|
|
#include "../Types.hpp"
|
|
|
|
|
2017-01-26 14:16:28 +00:00
|
|
|
#define CELLAPI \
|
2017-01-26 14:42:55 +00:00
|
|
|
{"GetCellStateChangesSize", CellFunctions::GetCellStateChangesSize},\
|
2017-01-29 11:21:41 +00:00
|
|
|
\
|
2017-02-03 18:27:40 +00:00
|
|
|
{"GetCellStateType", CellFunctions::GetCellStateType},\
|
2017-01-26 14:42:55 +00:00
|
|
|
{"GetCellStateDescription", CellFunctions::GetCellStateDescription},\
|
2017-01-29 11:21:41 +00:00
|
|
|
\
|
2017-01-26 14:37:47 +00:00
|
|
|
{"GetCell", CellFunctions::GetCell},\
|
|
|
|
{"SetCell", CellFunctions::SetCell},\
|
2017-06-10 14:49:41 +00:00
|
|
|
{"SetExteriorCell", CellFunctions::SetExteriorCell},\
|
2017-01-26 14:37:47 +00:00
|
|
|
{"GetExteriorX", CellFunctions::GetExteriorX},\
|
|
|
|
{"GetExteriorY", CellFunctions::GetExteriorY},\
|
|
|
|
{"IsInExterior", CellFunctions::IsInExterior},\
|
2017-01-29 11:21:41 +00:00
|
|
|
\
|
2017-06-10 08:43:40 +00:00
|
|
|
{"GetRegion", CellFunctions::GetRegion},\
|
|
|
|
{"IsChangingRegion", CellFunctions::IsChangingRegion},\
|
|
|
|
\
|
2017-01-26 14:37:47 +00:00
|
|
|
{"SendCell", CellFunctions::SendCell}
|
2017-01-26 14:10:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
class CellFunctions
|
|
|
|
{
|
|
|
|
public:
|
2017-01-26 14:37:47 +00:00
|
|
|
static unsigned int GetCellStateChangesSize(unsigned short pid) noexcept;
|
|
|
|
|
2017-02-03 18:27:40 +00:00
|
|
|
static unsigned int GetCellStateType(unsigned short pid, unsigned int i) noexcept;
|
2017-01-27 11:05:18 +00:00
|
|
|
static const char *GetCellStateDescription(unsigned short pid, unsigned int i) noexcept;
|
2017-01-26 14:37:47 +00:00
|
|
|
|
2017-01-26 14:10:45 +00:00
|
|
|
static const char *GetCell(unsigned short pid) noexcept;
|
2017-06-10 14:49:41 +00:00
|
|
|
static void SetCell(unsigned short pid, const char *cellDescription) noexcept;
|
|
|
|
static void SetExteriorCell(unsigned short pid, int x, int y) noexcept;
|
2017-01-26 14:10:45 +00:00
|
|
|
static int GetExteriorX(unsigned short pid) noexcept;
|
|
|
|
static int GetExteriorY(unsigned short pid) noexcept;
|
|
|
|
static bool IsInExterior(unsigned short pid) noexcept;
|
|
|
|
|
2017-06-10 08:43:40 +00:00
|
|
|
static const char *GetRegion(unsigned short pid) noexcept;
|
|
|
|
static bool IsChangingRegion(unsigned short pid) noexcept;
|
|
|
|
|
2017-01-26 14:10:45 +00:00
|
|
|
static void SendCell(unsigned short pid) noexcept;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //OPENMW_CELLAPI_HPP
|