1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 19:23:52 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Worldstate/PacketWorldRegionAuthority.cpp

18 lines
617 B
C++
Raw Normal View History

#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketWorldRegionAuthority.hpp"
mwmp::PacketWorldRegionAuthority::PacketWorldRegionAuthority(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer)
{
packetID = ID_WORLD_REGION_AUTHORITY;
// Make sure the priority is lower than PlayerCellChange's, so it doesn't get sent before it
priority = HIGH_PRIORITY;
reliability = RELIABLE_ORDERED;
}
void mwmp::PacketWorldRegionAuthority::Packet(RakNet::BitStream *newBitstream, bool send)
{
WorldstatePacket::Packet(newBitstream, send);
RW(worldstate->authorityRegion, send, true);
}