openmw-tes3coop/components/openmw-mp/Packets/Player/PacketLevel.cpp

21 lines
438 B
C++
Raw Normal View History

2016-09-25 11:28:25 +00:00
//
// Created by David Cernat on 25.09.16.
//
#include "PacketLevel.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
using namespace mwmp;
2016-10-17 12:54:36 +00:00
PacketLevel::PacketLevel(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
2016-09-25 11:28:25 +00:00
{
packetID = ID_GAME_LEVEL;
}
void PacketLevel::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
{
2016-10-17 12:54:36 +00:00
PlayerPacket::Packet(bs, player, send);
2016-09-25 11:28:25 +00:00
RW(player->CreatureStats()->mLevel, send);
}