forked from mirror/openmw-tes3mp
26 lines
472 B
C++
26 lines
472 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::setEvent(BaseEvent *event)
|
||
|
{
|
||
|
this->event = event;
|
||
|
guid = event->guid;
|
||
|
}
|