mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
c639337842
# Conflicts: # apps/openmw-mp/Networking.cpp # apps/openmw/mwmp/Networking.cpp # components/CMakeLists.txt # components/openmw-mp/NetworkMessages.hpp # components/openmw-mp/PacketsController.cpp
25 lines
599 B
C++
25 lines
599 B
C++
//
|
|
// Created by koncord on 07.01.16.
|
|
//
|
|
|
|
#include "PacketEquipment.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketEquipment::PacketEquipment(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_GAME_EQUIPMENT;
|
|
}
|
|
|
|
void PacketEquipment::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
|
{
|
|
PlayerPacket::Packet(bs, player, send);
|
|
|
|
for (int i = 0; i < 19; i++)
|
|
{
|
|
RW(player->EquipedItem(i)->refid, send);
|
|
RW(player->EquipedItem(i)->count, send);
|
|
RW(player->EquipedItem(i)->health, send);
|
|
}
|
|
}
|