2017-05-29 01:43:52 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
2018-07-17 06:21:13 +00:00
|
|
|
#include "PacketWorldRegionAuthority.hpp"
|
2017-05-29 01:43:52 +00:00
|
|
|
|
2018-07-17 06:21:13 +00:00
|
|
|
mwmp::PacketWorldRegionAuthority::PacketWorldRegionAuthority(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2017-05-29 01:43:52 +00:00
|
|
|
{
|
2018-07-17 06:21:13 +00:00
|
|
|
packetID = ID_WORLD_REGION_AUTHORITY;
|
2017-05-29 01:43:52 +00:00
|
|
|
priority = IMMEDIATE_PRIORITY;
|
|
|
|
reliability = RELIABLE_ORDERED;
|
|
|
|
}
|
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
void mwmp::PacketWorldRegionAuthority::Packet(RakNet::BitStream *newBitstream, bool send)
|
2017-05-29 01:43:52 +00:00
|
|
|
{
|
2019-12-04 08:17:33 +00:00
|
|
|
PlayerPacket::Packet(newBitstream, send);
|
2017-05-29 01:43:52 +00:00
|
|
|
|
2018-07-17 06:21:13 +00:00
|
|
|
RW(player->authorityRegion, send, true);
|
2017-05-29 01:43:52 +00:00
|
|
|
}
|