openmw-tes3coop/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp

18 lines
434 B
C++
Raw Normal View History

#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketActorAuthority.hpp"
using namespace mwmp;
PacketActorAuthority::PacketActorAuthority(RakNet::RakPeerInterface *peer) : ActorPacket(peer)
{
packetID = ID_ACTOR_AUTHORITY;
}
void PacketActorAuthority::Packet(RakNet::BitStream *bs, bool send)
{
2017-06-02 19:42:10 +00:00
BasePacket::Packet(bs, send);
RW(actorList->cell.mData, send, 1);
RW(actorList->cell.mName, send, 1);
}