forked from mirror/openmw-tes3mp
[General] Implement PlayerJail packet
Rework server's DeathFunctions into MechanicsFunctions Remove connection between PlayerResurrect and jailing0.6.1
parent
b1b27728e2
commit
3280f0c5ee
@ -1,19 +0,0 @@
|
||||
#ifndef OPENMW_DEATHAPI_HPP
|
||||
#define OPENMW_DEATHAPI_HPP
|
||||
|
||||
#include "../Types.hpp"
|
||||
|
||||
#define DEATHAPI \
|
||||
{"SetDeathPenaltyJailDays", DeathFunctions::SetDeathPenaltyJailDays},\
|
||||
\
|
||||
{"Resurrect", DeathFunctions::Resurrect}
|
||||
|
||||
class DeathFunctions
|
||||
{
|
||||
public:
|
||||
static void SetDeathPenaltyJailDays(unsigned short pid, int days) noexcept;
|
||||
|
||||
static void Resurrect(unsigned short pid, unsigned int type) noexcept;
|
||||
};
|
||||
|
||||
#endif //OPENMW_DEATHAPI_HPP
|
@ -0,0 +1,19 @@
|
||||
#ifndef OPENMW_MECHANICSAPI_HPP
|
||||
#define OPENMW_MECHANICSAPI_HPP
|
||||
|
||||
#include "../Types.hpp"
|
||||
|
||||
#define MECHANICSAPI \
|
||||
{"Jail", MechanicsFunctions::Jail},\
|
||||
\
|
||||
{"Resurrect", MechanicsFunctions::Resurrect}
|
||||
|
||||
class MechanicsFunctions
|
||||
{
|
||||
public:
|
||||
static void Jail(unsigned short pid, int jailDays, bool ignoreJailTeleportation) noexcept;
|
||||
|
||||
static void Resurrect(unsigned short pid, unsigned int type) noexcept;
|
||||
};
|
||||
|
||||
#endif //OPENMW_MECHANICSAPI_HPP
|
Loading…
Reference in New Issue