2018-07-17 06:21:13 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketWorldRegionAuthority.hpp"
|
|
|
|
|
|
|
|
mwmp::PacketWorldRegionAuthority::PacketWorldRegionAuthority(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_WORLD_REGION_AUTHORITY;
|
2021-03-25 09:25:22 +00:00
|
|
|
// Make sure the priority is lower than PlayerCellChange's, so it doesn't get sent before it
|
|
|
|
priority = HIGH_PRIORITY;
|
2018-07-17 06:21:13 +00:00
|
|
|
reliability = RELIABLE_ORDERED;
|
|
|
|
}
|
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
void mwmp::PacketWorldRegionAuthority::Packet(RakNet::BitStream *newBitstream, bool send)
|
2018-07-17 06:21:13 +00:00
|
|
|
{
|
2019-12-04 08:17:33 +00:00
|
|
|
WorldstatePacket::Packet(newBitstream, send);
|
2018-07-17 06:21:13 +00:00
|
|
|
|
|
|
|
RW(worldstate->authorityRegion, send, true);
|
|
|
|
}
|