mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 15:19:55 +00:00
23 lines
666 B
C++
23 lines
666 B
C++
#include "PacketPlayerItemUse.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketPlayerItemUse::PacketPlayerItemUse(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_PLAYER_ITEM_USE;
|
|
}
|
|
|
|
void PacketPlayerItemUse::Packet(RakNet::BitStream *newBitstream, bool send)
|
|
{
|
|
PlayerPacket::Packet(newBitstream, send);
|
|
|
|
RW(player->usedItem.refId, send, true);
|
|
RW(player->usedItem.count, send);
|
|
RW(player->usedItem.charge, send);
|
|
RW(player->usedItem.enchantmentCharge, send);
|
|
RW(player->usedItem.soul, send, true);
|
|
|
|
RW(player->usingItemMagic, send);
|
|
RW(player->itemUseDrawState, send);
|
|
}
|