mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:49:56 +00:00
b249162ca1
Certain servers do not want the players to have debug information about the locations and actions of other players, so a client's log level can now be enforced by the server via the GameSettings packet.
23 lines
652 B
C++
23 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);
|
|
}
|