1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:19:56 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Player/PacketPlayerLevel.cpp

18 lines
454 B
C++

#include "PacketPlayerLevel.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
using namespace mwmp;
PacketPlayerLevel::PacketPlayerLevel(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_PLAYER_LEVEL;
}
void PacketPlayerLevel::Packet(RakNet::BitStream *newBitstream, bool send)
{
PlayerPacket::Packet(newBitstream, send);
RW(player->creatureStats.mLevel, send);
RW(player->npcStats.mLevelProgress, send);
}