mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 17:19:56 +00:00
21 lines
599 B
C++
21 lines
599 B
C++
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include <components/openmw-mp/Log.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 (int j = 0; j < 19; j++)
|
|
{
|
|
RW(actor.equipedItems[j].refId, send);
|
|
RW(actor.equipedItems[j].count, send);
|
|
RW(actor.equipedItems[j].charge, send);
|
|
RW(actor.equipedItems[j].enchantmentCharge, send);
|
|
}
|
|
}
|