2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 17.03.16.
|
|
|
|
//
|
|
|
|
|
2017-02-04 12:25:43 +00:00
|
|
|
#include "PacketPlayerSkill.hpp"
|
2016-01-12 03:41:44 +00:00
|
|
|
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include <components/esm/creaturestats.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2017-02-04 12:25:43 +00:00
|
|
|
PacketPlayerSkill::PacketPlayerSkill(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-02-04 12:25:43 +00:00
|
|
|
packetID = ID_PLAYER_SKILL;
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
|
2017-03-06 09:44:08 +00:00
|
|
|
void PacketPlayerSkill::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->npcStats.mSkills, send);
|
2016-09-30 01:52:21 +00:00
|
|
|
|
2017-06-02 18:23:23 +00:00
|
|
|
|
|
|
|
RW(player->npcStats.mSkillIncrease, send);
|
2016-09-30 04:15:59 +00:00
|
|
|
|
2017-01-25 15:06:15 +00:00
|
|
|
RW(player->npcStats.mLevelProgress, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|