1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 09:19:58 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Actor/PacketActorStatsDynamic.cpp

19 lines
496 B
C++
Raw Normal View History

#include <components/openmw-mp/NetworkMessages.hpp>
#include <components/openmw-mp/Log.hpp>
#include <components/esm/creaturestats.hpp>
#include "PacketActorStatsDynamic.hpp"
using namespace mwmp;
PacketActorStatsDynamic::PacketActorStatsDynamic(RakNet::RakPeerInterface *peer) : ActorPacket(peer)
{
packetID = ID_ACTOR_STATS_DYNAMIC;
}
2017-06-02 19:42:10 +00:00
void PacketActorStatsDynamic::Actor(BaseActor &actor, bool send)
{
2017-06-02 19:42:10 +00:00
RW(actor.creatureStats.mDynamic, send);
2017-06-02 19:42:10 +00:00
actor.hasStatsDynamicData = true;
}