2017-07-10 09:33:53 +00:00
|
|
|
#include "PacketPlayerJail.hpp"
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include <components/openmw-mp/Log.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketPlayerJail::PacketPlayerJail(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_PLAYER_JAIL;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PacketPlayerJail::Packet(RakNet::BitStream *bs, bool send)
|
|
|
|
{
|
|
|
|
PlayerPacket::Packet(bs, send);
|
|
|
|
|
|
|
|
RW(player->jailDays, send);
|
2017-07-11 10:34:09 +00:00
|
|
|
RW(player->ignoreJailTeleportation, send);
|
2017-07-12 15:24:37 +00:00
|
|
|
RW(player->ignoreJailSkillIncreases, send);
|
2017-11-28 13:37:46 +00:00
|
|
|
RW(player->jailProgressText, send, true);
|
|
|
|
RW(player->jailEndText, send, true);
|
2017-07-10 09:33:53 +00:00
|
|
|
}
|