1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 21:19:55 +00:00
openmw-tes3mp/components/openmw-mp/Packets/World/PacketObjectPlace.cpp

21 lines
560 B
C++
Raw Normal View History

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