mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:19:56 +00:00
18 lines
454 B
C++
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);
|
|
}
|