2016-10-19 17:36:11 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include <PacketPriority.h>
|
|
|
|
#include <RakPeer.h>
|
|
|
|
#include "WorldPacket.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
WorldPacket::WorldPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
|
|
{
|
|
|
|
packetID = 0;
|
|
|
|
priority = HIGH_PRIORITY;
|
|
|
|
reliability = RELIABLE_ORDERED;
|
|
|
|
this->peer = peer;
|
|
|
|
}
|
|
|
|
|
|
|
|
WorldPacket::~WorldPacket()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-03-06 09:44:08 +00:00
|
|
|
void WorldPacket::setEvent(BaseEvent *event)
|
2016-10-19 17:36:11 +00:00
|
|
|
{
|
2017-03-06 09:44:08 +00:00
|
|
|
this->event = event;
|
|
|
|
guid = event->guid;
|
2016-10-19 17:36:11 +00:00
|
|
|
}
|