openmw-tes3coop/components/openmw-mp/Packets/World/PacketObjectRotate.cpp

19 lines
509 B
C++
Raw Normal View History

2016-10-25 11:28:39 +00:00
#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketObjectRotate.hpp"
using namespace mwmp;
PacketObjectRotate::PacketObjectRotate(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
{
packetID = ID_OBJECT_ROTATE;
2017-06-02 19:10:47 +00:00
hasCellData = true;
2016-10-25 11:28:39 +00:00
}
2017-06-02 19:10:47 +00:00
void PacketObjectRotate::Object(WorldObject &worldObject, bool send)
2016-10-25 11:28:39 +00:00
{
2017-06-02 19:10:47 +00:00
WorldPacket::Object(worldObject, send);
RW(worldObject.position.rot[0], send);
RW(worldObject.position.rot[1], send);
RW(worldObject.position.rot[2], send);
2016-10-25 11:28:39 +00:00
}