2016-10-24 20:44:05 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
2017-02-01 09:54:40 +00:00
|
|
|
#include "PacketDoorState.hpp"
|
2016-10-24 20:44:05 +00:00
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2017-02-01 09:54:40 +00:00
|
|
|
PacketDoorState::PacketDoorState(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
2016-10-24 20:44:05 +00:00
|
|
|
{
|
2017-02-01 09:54:40 +00:00
|
|
|
packetID = ID_DOOR_STATE;
|
2017-06-02 19:10:47 +00:00
|
|
|
hasCellData = true;
|
2016-10-24 20:44:05 +00:00
|
|
|
}
|
|
|
|
|
2017-06-02 19:10:47 +00:00
|
|
|
void PacketDoorState::Object(WorldObject &worldObject, bool send)
|
2016-10-24 20:44:05 +00:00
|
|
|
{
|
2017-06-02 19:10:47 +00:00
|
|
|
WorldPacket::Object(worldObject, send);
|
|
|
|
RW(worldObject.doorState, send);
|
2016-10-24 20:44:05 +00:00
|
|
|
}
|