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

17 lines
410 B
C++
Raw Normal View History

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