mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 23:49:55 +00:00
23 lines
672 B
C++
23 lines
672 B
C++
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include "PacketObjectPlace.hpp"
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketObjectPlace::PacketObjectPlace(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
|
{
|
|
packetID = ID_OBJECT_PLACE;
|
|
hasCellData = true;
|
|
}
|
|
|
|
void PacketObjectPlace::Object(BaseObject &baseObject, bool send)
|
|
{
|
|
ObjectPacket::Object(baseObject, send);
|
|
RW(baseObject.count, send);
|
|
RW(baseObject.charge, send);
|
|
RW(baseObject.enchantmentCharge, send);
|
|
RW(baseObject.soul, send, true);
|
|
RW(baseObject.goldValue, send);
|
|
RW(baseObject.position, send);
|
|
RW(baseObject.droppedByPlayer, send);
|
|
RW(baseObject.hasContainer, send);
|
|
}
|