forked from mirror/openmw-tes3mp
18 lines
452 B
C++
18 lines
452 B
C++
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||
|
#include "PacketObjectDelete.hpp"
|
||
|
|
||
|
using namespace mwmp;
|
||
|
|
||
|
PacketObjectDelete::PacketObjectDelete(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||
|
{
|
||
|
packetID = ID_WORLD_OBJECT_DELETE;
|
||
|
}
|
||
|
|
||
|
void PacketObjectDelete::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||
|
{
|
||
|
WorldPacket::Packet(bs, event, send);
|
||
|
|
||
|
RW(event->cellRef.mRefID, send);
|
||
|
RW(event->cellRef.mRefNum, send);
|
||
|
}
|