2016-10-22 15:05:32 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketObjectPlace.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketObjectPlace::PacketObjectPlace(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
|
|
|
{
|
2016-10-23 09:53:49 +00:00
|
|
|
packetID = ID_WORLD_OBJECT_PLACE;
|
2016-10-22 15:05:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void PacketObjectPlace::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
|
|
|
{
|
|
|
|
WorldPacket::Packet(bs, event, send);
|
|
|
|
|
|
|
|
RW(event->cellRef.mRefID, send);
|
2016-10-23 13:33:53 +00:00
|
|
|
RW(event->cellRef.mRefNum.mIndex, send);
|
2016-10-23 10:30:32 +00:00
|
|
|
RW(event->cellRef.mPos, send);
|
|
|
|
|
|
|
|
RW(event->cell.mData.mFlags, send);
|
2016-10-23 13:55:30 +00:00
|
|
|
RW(event->cell.mData.mX, send);
|
|
|
|
RW(event->cell.mData.mY, send);
|
2016-10-23 10:30:32 +00:00
|
|
|
RW(event->cell.mName, send);
|
2016-10-22 15:05:32 +00:00
|
|
|
}
|