2018-01-30 14:01:33 +00:00
|
|
|
#include "PacketPlayerMomentum.hpp"
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketPlayerMomentum::PacketPlayerMomentum(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_PLAYER_MOMENTUM;
|
|
|
|
priority = MEDIUM_PRIORITY;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PacketPlayerMomentum::Packet(RakNet::BitStream *bs, bool send)
|
|
|
|
{
|
|
|
|
PlayerPacket::Packet(bs, send);
|
2018-04-29 20:47:17 +00:00
|
|
|
|
2018-07-02 18:50:21 +00:00
|
|
|
RW(player->momentum.pos, send, true);
|
2018-01-30 14:01:33 +00:00
|
|
|
}
|