2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 15.01.16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
2017-01-20 08:30:50 +00:00
|
|
|
#include "PacketPlayerCellChange.hpp"
|
2016-01-12 03:41:44 +00:00
|
|
|
|
|
|
|
|
2017-01-20 08:30:50 +00:00
|
|
|
mwmp::PacketPlayerCellChange::PacketPlayerCellChange(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-01-20 08:30:50 +00:00
|
|
|
packetID = ID_PLAYER_CELL_CHANGE;
|
2016-07-17 19:03:20 +00:00
|
|
|
priority = IMMEDIATE_PRIORITY;
|
|
|
|
reliability = RELIABLE_ORDERED;
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
|
2017-01-20 08:30:50 +00:00
|
|
|
void mwmp::PacketPlayerCellChange::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player, bool send)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2016-10-17 12:54:36 +00:00
|
|
|
PlayerPacket::Packet(bs, player, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2017-01-25 15:06:15 +00:00
|
|
|
RW(player->cell.mData.mFlags, send);
|
|
|
|
RW(player->cell.mData.mX, send);
|
|
|
|
RW(player->cell.mData.mY, send);
|
|
|
|
RW(player->cell.mName, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|