forked from mirror/openmw-tes3mp
Add and implement ID_WORLD_OBJECT_UNLOCK
parent
94c5d6d2f9
commit
08ea5163c4
@ -0,0 +1,22 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketObjectUnlock.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketObjectUnlock::PacketObjectUnlock(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_WORLD_OBJECT_UNLOCK;
|
||||
}
|
||||
|
||||
void PacketObjectUnlock::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
|
||||
RW(event->cellRef.mRefID, send);
|
||||
RW(event->cellRef.mRefNum.mIndex, send);
|
||||
|
||||
RW(event->cell.mData.mFlags, send);
|
||||
RW(event->cell.mData.mX, send);
|
||||
RW(event->cell.mData.mY, send);
|
||||
RW(event->cell.mName, send);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_PACKETOBJECTUNLOCK_HPP
|
||||
#define OPENMW_PACKETOBJECTUNLOCK_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketObjectUnlock : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketObjectUnlock(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETOBJECTUNLOCK_HPP
|
Loading…
Reference in New Issue