openmw-tes3coop/components/openmw-mp/Packets/World/PacketObjectRemoval.cpp
2016-10-20 22:15:47 +03:00

16 lines
415 B
C++

#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketObjectRemoval.hpp"
using namespace mwmp;
PacketObjectRemoval::PacketObjectRemoval(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
{
packetID = ID_WORLD_OBJECT_REMOVAL;
}
void PacketObjectRemoval::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
{
WorldPacket::Packet(bs, event, send);
RW(*event->CellRef(), send);
}