2017-05-16 16:25:31 +00:00
|
|
|
#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;
|
|
|
|
}
|
|
|
|
|
2017-06-02 19:42:10 +00:00
|
|
|
void PacketActorEquipment::Actor(BaseActor &actor, bool send)
|
2017-05-16 16:25:31 +00:00
|
|
|
{
|
2017-11-28 13:51:34 +00:00
|
|
|
for (auto &&equipedItem : actor.equipedItems)
|
2017-05-16 16:25:31 +00:00
|
|
|
{
|
2017-11-28 13:51:34 +00:00
|
|
|
RW(equipedItem.refId, send);
|
|
|
|
RW(equipedItem.count, send);
|
|
|
|
RW(equipedItem.charge, send);
|
2017-05-16 16:25:31 +00:00
|
|
|
}
|
|
|
|
}
|