openmw-tes3coop/components/openmw-mp/Packets/Actor/ActorPacket.cpp
2017-04-09 16:32:44 +03:00

25 lines
496 B
C++

#include <components/openmw-mp/NetworkMessages.hpp>
#include <PacketPriority.h>
#include <RakPeer.h>
#include "ActorPacket.hpp"
using namespace mwmp;
ActorPacket::ActorPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
{
packetID = 0;
priority = HIGH_PRIORITY;
reliability = RELIABLE_ORDERED;
this->peer = peer;
}
ActorPacket::~ActorPacket()
{
}
void ActorPacket::setActorList(BaseActorList *actorList)
{
this->actorList = actorList;
guid = actorList->guid;
}