2016-10-25 09:53:18 +00:00
|
|
|
#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;
|
2016-10-25 09:53:18 +00:00
|
|
|
}
|
|
|
|
|
2017-06-02 19:10:47 +00:00
|
|
|
void PacketObjectMove::Object(WorldObject &worldObject, bool send)
|
2016-10-25 09:53:18 +00:00
|
|
|
{
|
2017-06-02 19:10:47 +00:00
|
|
|
WorldPacket::Object(worldObject, send);
|
|
|
|
RW(worldObject.position.pos, send);
|
2016-10-25 09:53:18 +00:00
|
|
|
}
|