2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 08.03.16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "PacketAttribute.hpp"
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketAttribute::PacketAttribute(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_GAME_ATTRIBUTE;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PacketAttribute::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
|
|
|
{
|
|
|
|
BasePacket::Packet(bs, player, send);
|
|
|
|
|
2016-08-17 15:20:36 +00:00
|
|
|
for (int i = 0; i < AttributesCount; ++i)
|
2016-01-12 03:41:44 +00:00
|
|
|
RW(player->CreatureStats()->mAttributes[i], send);
|
|
|
|
}
|