forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
652 B
C++
24 lines
652 B
C++
#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);
|
|
RW(player->consoleAllowed, send);
|
|
RW(player->bedRestAllowed, send);
|
|
RW(player->wildernessRestAllowed, send);
|
|
RW(player->waitAllowed, send);
|
|
RW(player->enforcedLogLevel, send);
|
|
RW(player->physicsFramerate, send);
|
|
}
|