1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 07:53:51 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Object/PacketObjectRotate.cpp

19 lines
505 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) : ObjectPacket(peer)
2016-10-25 11:28:39 +00:00
{
packetID = ID_OBJECT_ROTATE;
2017-06-02 19:10:47 +00:00
hasCellData = true;
2016-10-25 11:28:39 +00:00
}
void PacketObjectRotate::Object(BaseObject &baseObject, bool send)
2016-10-25 11:28:39 +00:00
{
ObjectPacket::Object(baseObject, send);
RW(baseObject.position.rot[0], send);
RW(baseObject.position.rot[1], send);
RW(baseObject.position.rot[2], send);
2016-10-25 11:28:39 +00:00
}