1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 13:53:51 +00:00
openmw-tes3mp/components/openmw-mp/Packets/System/SystemPacket.cpp

32 lines
581 B
C++
Raw Normal View History

#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()
{
}
void SystemPacket::setSystem(BaseSystem *newSystem)
{
system = newSystem;
guid = system->guid;
}
BaseSystem *SystemPacket::getSystem()
{
return system;
}