2019-11-09 03:12:00 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include <PacketPriority.h>
|
|
|
|
#include <RakPeer.h>
|
|
|
|
#include "SystemPacket.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
SystemPacket::SystemPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
|
|
{
|
|
|
|
packetID = 0;
|
|
|
|
priority = HIGH_PRIORITY;
|
|
|
|
reliability = RELIABLE_ORDERED;
|
|
|
|
orderChannel = CHANNEL_SYSTEM;
|
|
|
|
this->peer = peer;
|
|
|
|
}
|
|
|
|
|
|
|
|
SystemPacket::~SystemPacket()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
void SystemPacket::setSystem(BaseSystem *newSystem)
|
2019-11-09 03:12:00 +00:00
|
|
|
{
|
2019-12-04 08:17:33 +00:00
|
|
|
system = newSystem;
|
2019-11-09 03:12:00 +00:00
|
|
|
guid = system->guid;
|
|
|
|
}
|
|
|
|
|
|
|
|
BaseSystem *SystemPacket::getSystem()
|
|
|
|
{
|
|
|
|
return system;
|
|
|
|
}
|