mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 02:19:55 +00:00
1b259e2d33
Created Package system
21 lines
No EOL
593 B
C++
21 lines
No EOL
593 B
C++
//
|
|
// Created by koncord on 13.01.16.
|
|
//
|
|
|
|
#include "PacketMainStats.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketMainStats::PacketMainStats(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
{
|
|
packetID = ID_GAME_UPDATE_BASESTATS;
|
|
}
|
|
|
|
void PacketMainStats::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
|
{
|
|
BasePacket::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
|
|
} |