2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 15.01.16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketCell.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
mwmp::PacketCell::PacketCell(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_GAME_CELL;
|
2016-07-17 19:03:20 +00:00
|
|
|
priority = IMMEDIATE_PRIORITY;
|
|
|
|
reliability = RELIABLE_ORDERED;
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void mwmp::PacketCell::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player, bool send)
|
|
|
|
{
|
|
|
|
BasePacket::Packet(bs, player, send);
|
|
|
|
|
|
|
|
RW(player->GetCell()->mData.mFlags, send);
|
|
|
|
|
2016-07-29 17:33:28 +00:00
|
|
|
|
|
|
|
RW(player->GetCell()->mCellId.mIndex.mX, send);
|
|
|
|
RW(player->GetCell()->mCellId.mIndex.mY, send);
|
|
|
|
|
|
|
|
RW(player->GetCell()->mName, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|