mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 05:15:33 +00:00
19 lines
454 B
C++
19 lines
454 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->consoleAllowed, send);
|
||
|
RW(player->difficulty, send);
|
||
|
}
|