forked from mirror/openmw-tes3mp
Rename ID_GAME_DYNAMICSTATS_CURRENT into ID_GAME_DYNAMICSTATS
parent
9cbda73586
commit
b6086ab015
@ -0,0 +1,22 @@
|
||||
//
|
||||
// Created by David Cernat on 28.09.16.
|
||||
//
|
||||
|
||||
#ifndef OPENMW_PACKAGEDYNAMICSTATS_HPP
|
||||
#define OPENMW_PACKAGEDYNAMICSTATS_HPP
|
||||
|
||||
|
||||
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketDynamicStats : public BasePacket
|
||||
{
|
||||
public:
|
||||
PacketDynamicStats(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKAGEDYNAMICSTATS_HPP
|
@ -1,22 +0,0 @@
|
||||
//
|
||||
// Created by David Cernat on 28.09.16.
|
||||
//
|
||||
|
||||
#ifndef OPENMW_PACKAGEDYNAMICSTATSBASE_HPP
|
||||
#define OPENMW_PACKAGEDYNAMICSTATSBASE_HPP
|
||||
|
||||
|
||||
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketDynamicStatsBase : public BasePacket
|
||||
{
|
||||
public:
|
||||
PacketDynamicStatsBase(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKAGEDYNAMICSTATSBASE_HPP
|
@ -1,21 +0,0 @@
|
||||
//
|
||||
// Created by David Cernat on 28.09.16.
|
||||
//
|
||||
|
||||
#include "PacketDynamicStatsCurrent.hpp"
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketDynamicStatsCurrent::PacketDynamicStatsCurrent(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||
{
|
||||
packetID = ID_GAME_DYNAMICSTATS_CURRENT;
|
||||
}
|
||||
|
||||
void PacketDynamicStatsCurrent::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
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
//
|
||||
// Created by David Cernat on 28.09.16.
|
||||
//
|
||||
|
||||
#ifndef OPENMW_PACKAGEDYNAMICSTATSCURRENT_HPP
|
||||
#define OPENMW_PACKAGEDYNAMICSTATSCURRENT_HPP
|
||||
|
||||
|
||||
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketDynamicStatsCurrent : public BasePacket
|
||||
{
|
||||
public:
|
||||
PacketDynamicStatsCurrent(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKAGEDYNAMICSTATSCURRENT_HPP
|
Loading…
Reference in New Issue