2016-10-21 18:57:05 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketObjectCreation.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketObjectCreation::PacketObjectCreation(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_WORLD_OBJECT_REMOVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PacketObjectCreation::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
|
|
|
{
|
|
|
|
WorldPacket::Packet(bs, event, send);
|
|
|
|
|
2016-10-22 11:13:16 +00:00
|
|
|
RW(event->cellRef.mRefID, send);
|
|
|
|
RW(event->cellRef.mRefNum, send);
|
2016-10-21 18:57:05 +00:00
|
|
|
}
|