forked from mirror/openmw-tes3mp
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.
22 lines
568 B
C++
22 lines
568 B
C++
6 years ago
|
#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 *bs, bool send)
|
||
|
{
|
||
|
PlayerPacket::Packet(bs, 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);
|
||
|
}
|