mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:49:56 +00:00
21 lines
593 B
C++
21 lines
593 B
C++
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include <components/openmw-mp/TimedLog.hpp>
|
|
#include "PacketActorEquipment.hpp"
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketActorEquipment::PacketActorEquipment(RakNet::RakPeerInterface *peer) : ActorPacket(peer)
|
|
{
|
|
packetID = ID_ACTOR_EQUIPMENT;
|
|
}
|
|
|
|
void PacketActorEquipment::Actor(BaseActor &actor, bool send)
|
|
{
|
|
for (auto &&equipmentItem : actor.equipmentItems)
|
|
{
|
|
RW(equipmentItem.refId, send);
|
|
RW(equipmentItem.count, send);
|
|
RW(equipmentItem.charge, send);
|
|
RW(equipmentItem.enchantmentCharge, send);
|
|
}
|
|
}
|