2017-07-11 10:34:09 +00:00
|
|
|
#ifndef OPENMW_MECHANICSAPI_HPP
|
|
|
|
#define OPENMW_MECHANICSAPI_HPP
|
|
|
|
|
|
|
|
#include "../Types.hpp"
|
|
|
|
|
|
|
|
#define MECHANICSAPI \
|
2017-07-15 08:09:28 +00:00
|
|
|
{"IsWerewolf", MechanicsFunctions::IsWerewolf},\
|
|
|
|
\
|
|
|
|
{"SetWerewolfState", MechanicsFunctions::SetWerewolfState},\
|
2017-07-11 10:34:09 +00:00
|
|
|
\
|
2017-07-15 08:09:28 +00:00
|
|
|
{"SendShapeshift", MechanicsFunctions::SendShapeshift},\
|
|
|
|
\
|
|
|
|
{"Jail", MechanicsFunctions::Jail},\
|
2017-07-11 10:34:09 +00:00
|
|
|
{"Resurrect", MechanicsFunctions::Resurrect}
|
|
|
|
|
|
|
|
class MechanicsFunctions
|
|
|
|
{
|
|
|
|
public:
|
2017-07-15 08:09:28 +00:00
|
|
|
|
|
|
|
static bool IsWerewolf(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
static void SetWerewolfState(unsigned short pid, bool isWerewolf);
|
|
|
|
|
|
|
|
static void SendShapeshift(unsigned short pid);
|
|
|
|
|
2017-07-13 17:13:28 +00:00
|
|
|
static void Jail(unsigned short pid, int jailDays, bool ignoreJailTeleportation = false, bool ignoreJailSkillIncreases = false,
|
|
|
|
const char* jailProgressText = "", const char* jailEndText = "") noexcept;
|
2017-07-11 10:34:09 +00:00
|
|
|
|
|
|
|
static void Resurrect(unsigned short pid, unsigned int type) noexcept;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //OPENMW_MECHANICSAPI_HPP
|