openmw-tes3coop/components/openmw-mp/Packets/Object/PacketObjectTrap.cpp

20 lines
478 B
C++
Raw Normal View History

#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketObjectTrap.hpp"
using namespace mwmp;
PacketObjectTrap::PacketObjectTrap(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
{
packetID = ID_OBJECT_TRAP;
2017-06-02 19:10:47 +00:00
hasCellData = true;
}
void PacketObjectTrap::Object(BaseObject &baseObject, bool send)
{
ObjectPacket::Object(baseObject, send);
RW(baseObject.isDisarmed, send);
if (!baseObject.isDisarmed)
RW(baseObject.position, send);
}