2017-06-20 02:28:45 +00:00
|
|
|
#include "PacketGameSettings.hpp"
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketGameSettings::PacketGameSettings(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_GAME_SETTINGS;
|
|
|
|
orderChannel = CHANNEL_SYSTEM;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PacketGameSettings::Packet(RakNet::BitStream *bs, bool send)
|
|
|
|
{
|
|
|
|
PlayerPacket::Packet(bs, send);
|
|
|
|
|
|
|
|
RW(player->difficulty, send);
|
2017-11-27 05:39:02 +00:00
|
|
|
RW(player->consoleAllowed, send);
|
|
|
|
RW(player->restAllowed, send);
|
|
|
|
RW(player->waitAllowed, send);
|
2017-06-20 02:28:45 +00:00
|
|
|
}
|