You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
672 B
C++
24 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);
|
|
}
|