mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 19:49:54 +00:00
20 lines
543 B
C++
20 lines
543 B
C++
#include "PacketPlayerPosition.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace std;
|
|
using namespace mwmp;
|
|
|
|
PacketPlayerPosition::PacketPlayerPosition(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_PLAYER_POSITION;
|
|
priority = MEDIUM_PRIORITY;
|
|
//reliability = UNRELIABLE_SEQUENCED;
|
|
}
|
|
|
|
void PacketPlayerPosition::Packet(RakNet::BitStream *newBitstream, bool send)
|
|
{
|
|
PlayerPacket::Packet(newBitstream, send);
|
|
|
|
RW(player->position, send, 1);
|
|
RW(player->direction, send, 1);
|
|
}
|