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},\
|
|
|
|
{"SetObjectPosition", WorldFunctions::SetObjectPosition},\
|
|
|
|
\
|
|
|
|
{"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;
|
|
|
|
|
|
|
|
static void SetObjectRefId(unsigned int i, const char* refId) noexcept;
|
|
|
|
static void SetObjectRefNumIndex(unsigned int i, int refNumIndex) noexcept;
|
|
|
|
static void SetObjectPosition(unsigned int i, double x, double y, double z) noexcept;
|
|
|
|
|
|
|
|
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
|