forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
581 B
C++
32 lines
581 B
C++
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include <PacketPriority.h>
|
|
#include <RakPeer.h>
|
|
#include "PlayerPacket.hpp"
|
|
|
|
using namespace mwmp;
|
|
|
|
PlayerPacket::PlayerPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
{
|
|
packetID = 0;
|
|
priority = HIGH_PRIORITY;
|
|
reliability = RELIABLE_ORDERED;
|
|
orderChannel = CHANNEL_PLAYER;
|
|
this->peer = peer;
|
|
}
|
|
|
|
PlayerPacket::~PlayerPacket()
|
|
{
|
|
|
|
}
|
|
|
|
void PlayerPacket::setPlayer(BasePlayer *player)
|
|
{
|
|
this->player = player;
|
|
guid = player->guid;
|
|
}
|
|
|
|
BasePlayer *PlayerPacket::getPlayer()
|
|
{
|
|
return player;
|
|
}
|