2017-02-05 07:01:33 +00:00
|
|
|
#include "PacketPlayerLevel.hpp"
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketPlayerLevel::PacketPlayerLevel(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_PLAYER_LEVEL;
|
|
|
|
}
|
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
void PacketPlayerLevel::Packet(RakNet::BitStream *newBitstream, bool send)
|
2017-02-05 07:01:33 +00:00
|
|
|
{
|
2019-12-04 08:17:33 +00:00
|
|
|
PlayerPacket::Packet(newBitstream, send);
|
2017-02-05 07:01:33 +00:00
|
|
|
|
|
|
|
RW(player->creatureStats.mLevel, send);
|
2018-04-19 12:18:38 +00:00
|
|
|
|
|
|
|
RW(player->npcStats.mLevelProgress, send);
|
2017-02-05 07:01:33 +00:00
|
|
|
}
|