1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:49:56 +00:00
openmw-tes3mp/components/openmw-mp/Packets/World/PacketObjectLock.cpp

17 lines
407 B
C++
Raw Normal View History

2016-10-24 10:20:04 +00:00
#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketObjectLock.hpp"
using namespace mwmp;
PacketObjectLock::PacketObjectLock(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
{
packetID = ID_OBJECT_LOCK;
hasCellData = true;
2016-10-24 10:20:04 +00:00
}
2017-06-02 19:10:47 +00:00
void PacketObjectLock::Object(WorldObject &worldObject, bool send)
2016-10-24 10:20:04 +00:00
{
2017-06-02 19:10:47 +00:00
WorldPacket::Object(worldObject, send);
RW(worldObject.lockLevel, send);
2016-10-24 10:20:04 +00:00
}