You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
478 B
C++
20 lines
478 B
C++
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include "PacketObjectTrap.hpp"
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketObjectTrap::PacketObjectTrap(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
|
{
|
|
packetID = ID_OBJECT_TRAP;
|
|
hasCellData = true;
|
|
}
|
|
|
|
void PacketObjectTrap::Object(BaseObject &baseObject, bool send)
|
|
{
|
|
ObjectPacket::Object(baseObject, send);
|
|
RW(baseObject.isDisarmed, send);
|
|
|
|
if (!baseObject.isDisarmed)
|
|
RW(baseObject.position, send);
|
|
}
|