mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 12:53:51 +00:00
21 lines
No EOL
605 B
C++
21 lines
No EOL
605 B
C++
//
|
|
// Created by koncord on 13.01.16.
|
|
//
|
|
|
|
#include "PacketDynamicStats.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketDynamicStats::PacketDynamicStats(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_GAME_DYNAMICSTATS;
|
|
}
|
|
|
|
void PacketDynamicStats::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
|
{
|
|
PlayerPacket::Packet(bs, player, send);
|
|
RW(player->CreatureStats()->mDynamic[0], send); // health
|
|
RW(player->CreatureStats()->mDynamic[1], send); // magic
|
|
RW(player->CreatureStats()->mDynamic[2], send); // fatigue
|
|
} |