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);
|
2017-11-30 10:18:15 +00:00
|
|
|
RW(player->bedRestAllowed, send);
|
|
|
|
RW(player->wildernessRestAllowed, send);
|
2017-11-27 05:39:02 +00:00
|
|
|
RW(player->waitAllowed, send);
|
2018-03-11 02:50:59 +00:00
|
|
|
RW(player->enforcedLogLevel, send);
|
|
|
|
RW(player->physicsFramerate, send);
|
2017-06-20 02:28:45 +00:00
|
|
|
}
|