forked from teamnwah/openmw-tes3coop
21 lines
434 B
C++
21 lines
434 B
C++
|
//
|
||
|
// Created by David Cernat on 25.09.16.
|
||
|
//
|
||
|
|
||
|
#include "PacketLevel.hpp"
|
||
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||
|
|
||
|
using namespace mwmp;
|
||
|
|
||
|
PacketLevel::PacketLevel(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||
|
{
|
||
|
packetID = ID_GAME_LEVEL;
|
||
|
}
|
||
|
|
||
|
void PacketLevel::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
||
|
{
|
||
|
BasePacket::Packet(bs, player, send);
|
||
|
|
||
|
RW(player->CreatureStats()->mLevel, send);
|
||
|
}
|