2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 08.03.16.
|
|
|
|
//
|
|
|
|
|
2017-02-04 12:25:43 +00:00
|
|
|
#include "PacketPlayerAttribute.hpp"
|
2016-01-12 03:41:44 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2017-02-04 12:25:43 +00:00
|
|
|
PacketPlayerAttribute::PacketPlayerAttribute(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-02-04 12:25:43 +00:00
|
|
|
packetID = ID_PLAYER_ATTRIBUTE;
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
|
2017-03-06 09:44:08 +00:00
|
|
|
void PacketPlayerAttribute::Packet(RakNet::BitStream *bs, bool send)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-03-06 09:44:08 +00:00
|
|
|
PlayerPacket::Packet(bs, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2017-06-02 18:23:23 +00:00
|
|
|
RW(player->creatureStats.mAttributes, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|