2016-08-30 05:24:31 +00:00
|
|
|
#ifndef OPENMW_WORLD_HPP
|
|
|
|
#define OPENMW_WORLD_HPP
|
|
|
|
|
|
|
|
#define WORLDFUNCTIONS \
|
2017-01-28 14:22:30 +00:00
|
|
|
{"CreateWorldEvent", WorldFunctions::CreateWorldEvent},\
|
|
|
|
\
|
|
|
|
{"AddWorldObject", WorldFunctions::AddWorldObject},\
|
|
|
|
{"SetWorldEventCell", WorldFunctions::SetWorldEventCell},\
|
|
|
|
\
|
|
|
|
{"SetObjectRefId", WorldFunctions::SetObjectRefId},\
|
|
|
|
{"SetObjectRefNumIndex", WorldFunctions::SetObjectRefNumIndex},\
|
2017-01-29 14:16:01 +00:00
|
|
|
{"SetObjectCount", WorldFunctions::SetObjectCount},\
|
|
|
|
{"SetObjectGoldValue", WorldFunctions::SetObjectGoldValue},\
|
2017-01-28 14:22:30 +00:00
|
|
|
{"SetObjectPosition", WorldFunctions::SetObjectPosition},\
|
2017-01-29 15:38:29 +00:00
|
|
|
{"SetObjectRotation", WorldFunctions::SetObjectRotation},\
|
2017-01-28 14:22:30 +00:00
|
|
|
\
|
2017-01-29 11:21:41 +00:00
|
|
|
{"GetObjectChangesSize", WorldFunctions::GetObjectChangesSize},\
|
|
|
|
\
|
|
|
|
{"GetObjectRefId", WorldFunctions::GetObjectRefId},\
|
|
|
|
{"GetObjectRefNumIndex", WorldFunctions::GetObjectRefNumIndex},\
|
2017-01-29 13:29:40 +00:00
|
|
|
{"GetObjectCount", WorldFunctions::GetObjectCount},\
|
|
|
|
{"GetObjectGoldValue", WorldFunctions::GetObjectGoldValue},\
|
|
|
|
{"GetObjectPosX", WorldFunctions::GetObjectPosX},\
|
|
|
|
{"GetObjectPosY", WorldFunctions::GetObjectPosY},\
|
|
|
|
{"GetObjectPosZ", WorldFunctions::GetObjectPosZ},\
|
2017-01-29 15:38:29 +00:00
|
|
|
{"GetObjectRotX", WorldFunctions::GetObjectRotX},\
|
|
|
|
{"GetObjectRotY", WorldFunctions::GetObjectRotY},\
|
|
|
|
{"GetObjectRotZ", WorldFunctions::GetObjectRotZ},\
|
2017-01-29 11:21:41 +00:00
|
|
|
\
|
2017-01-28 14:22:30 +00:00
|
|
|
{"SendObjectDelete", WorldFunctions::SendObjectDelete},\
|
|
|
|
{"SendObjectPlace", WorldFunctions::SendObjectPlace},\
|
|
|
|
\
|
2016-11-16 17:28:22 +00:00
|
|
|
{"SetHour", WorldFunctions::SetHour},\
|
|
|
|
{"SetMonth", WorldFunctions::SetMonth},\
|
|
|
|
{"SetDay", WorldFunctions::SetDay}
|
2016-08-30 05:24:31 +00:00
|
|
|
|
|
|
|
class WorldFunctions
|
|
|
|
{
|
|
|
|
public:
|
2017-01-28 14:22:30 +00:00
|
|
|
|
|
|
|
static void CreateWorldEvent(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
static void AddWorldObject() noexcept;
|
|
|
|
static void SetWorldEventCell(const char* cellDescription) noexcept;
|
|
|
|
|
2017-01-30 15:42:29 +00:00
|
|
|
static void SetObjectRefId(const char* refId) noexcept;
|
|
|
|
static void SetObjectRefNumIndex(int refNumIndex) noexcept;
|
|
|
|
static void SetObjectCount(int count) noexcept;
|
|
|
|
static void SetObjectGoldValue(int goldValue) noexcept;
|
|
|
|
static void SetObjectPosition(double x, double y, double z) noexcept;
|
|
|
|
static void SetObjectRotation(double x, double y, double z) noexcept;
|
2017-01-28 14:22:30 +00:00
|
|
|
|
2017-01-29 11:21:41 +00:00
|
|
|
static unsigned int GetObjectChangesSize() noexcept;
|
|
|
|
|
|
|
|
static const char *GetObjectRefId(unsigned int i) noexcept;
|
|
|
|
static int GetObjectRefNumIndex(unsigned int i) noexcept;
|
2017-01-29 13:29:40 +00:00
|
|
|
static int GetObjectCount(unsigned int i) noexcept;
|
|
|
|
static int GetObjectGoldValue(unsigned int i) noexcept;
|
|
|
|
static double GetObjectPosX(unsigned int i) noexcept;
|
|
|
|
static double GetObjectPosY(unsigned int i) noexcept;
|
|
|
|
static double GetObjectPosZ(unsigned int i) noexcept;
|
2017-01-29 15:38:29 +00:00
|
|
|
static double GetObjectRotX(unsigned int i) noexcept;
|
|
|
|
static double GetObjectRotY(unsigned int i) noexcept;
|
|
|
|
static double GetObjectRotZ(unsigned int i) noexcept;
|
2017-01-29 11:21:41 +00:00
|
|
|
|
2017-01-28 14:22:30 +00:00
|
|
|
static void SendObjectDelete() noexcept;
|
|
|
|
static void SendObjectPlace() noexcept;
|
|
|
|
|
2016-11-16 17:28:22 +00:00
|
|
|
static void SetHour(unsigned short pid, double hour) noexcept;
|
|
|
|
static void SetMonth(unsigned short pid, int month) noexcept;
|
|
|
|
static void SetDay(unsigned short pid, int day) noexcept;
|
2016-08-30 05:24:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_WORLD_HPP
|