2016-10-22 15:05:32 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketObjectPlace.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketObjectPlace::PacketObjectPlace(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
|
|
|
{
|
2016-10-25 09:15:27 +00:00
|
|
|
packetID = ID_OBJECT_PLACE;
|
2017-06-02 19:10:47 +00:00
|
|
|
hasCellData = true;
|
2016-10-22 15:05:32 +00:00
|
|
|
}
|
|
|
|
|
2017-06-02 19:10:47 +00:00
|
|
|
void PacketObjectPlace::Object(WorldObject &worldObject, bool send)
|
2016-10-22 15:05:32 +00:00
|
|
|
{
|
2017-06-02 19:10:47 +00:00
|
|
|
WorldPacket::Object(worldObject, send);
|
|
|
|
RW(worldObject.count, send);
|
|
|
|
RW(worldObject.charge, send);
|
2017-12-23 11:16:38 +00:00
|
|
|
RW(worldObject.enchantmentCharge, send);
|
2017-06-02 19:10:47 +00:00
|
|
|
RW(worldObject.goldValue, send);
|
|
|
|
RW(worldObject.position, send);
|
2016-10-22 15:05:32 +00:00
|
|
|
}
|