mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:53:51 +00:00
20 lines
540 B
C++
20 lines
540 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);
|
|
}
|
|
}
|