2016-10-24 20:44:05 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketObjectScale.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketObjectScale::PacketObjectScale(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
|
|
|
{
|
2016-10-25 09:15:27 +00:00
|
|
|
packetID = ID_OBJECT_SCALE;
|
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 PacketObjectScale::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.scale, send);
|
2016-10-24 20:44:05 +00:00
|
|
|
}
|