1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 08:49:55 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp

22 lines
533 B
C++
Raw Normal View History

//
// Created by koncord on 08.03.16.
//
#include "PacketPlayerAttribute.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
using namespace mwmp;
PacketPlayerAttribute::PacketPlayerAttribute(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_PLAYER_ATTRIBUTE;
}
void PacketPlayerAttribute::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
{
2016-10-17 12:54:36 +00:00
PlayerPacket::Packet(bs, player, send);
2016-09-30 04:15:59 +00:00
for (int i = 0; i < AttributeCount; ++i)
RW(player->creatureStats.mAttributes[i], send);
}