mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 22:19:54 +00:00
690211ad99
Move Send and Read functions to BasePacket
25 lines
472 B
C++
25 lines
472 B
C++
#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()
|
|
{
|
|
|
|
}
|
|
|
|
void WorldPacket::setEvent(BaseEvent *event)
|
|
{
|
|
this->event = event;
|
|
guid = event->guid;
|
|
}
|