1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 07:49:56 +00:00
openmw-tes3mp/apps/openmw-mp/Script/Functions/World.hpp

43 lines
1.5 KiB
C++

#ifndef OPENMW_WORLD_HPP
#define OPENMW_WORLD_HPP
#define WORLDFUNCTIONS \
{"CreateWorldEvent", WorldFunctions::CreateWorldEvent},\
\
{"AddWorldObject", WorldFunctions::AddWorldObject},\
{"SetWorldEventCell", WorldFunctions::SetWorldEventCell},\
\
{"SetObjectRefId", WorldFunctions::SetObjectRefId},\
{"SetObjectRefNumIndex", WorldFunctions::SetObjectRefNumIndex},\
{"SetObjectPosition", WorldFunctions::SetObjectPosition},\
\
{"SendObjectDelete", WorldFunctions::SendObjectDelete},\
{"SendObjectPlace", WorldFunctions::SendObjectPlace},\
\
{"SetHour", WorldFunctions::SetHour},\
{"SetMonth", WorldFunctions::SetMonth},\
{"SetDay", WorldFunctions::SetDay}
class WorldFunctions
{
public:
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;
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;
};
#endif //OPENMW_WORLD_HPP