1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:19:56 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Actor/PacketActorStatsDynamic.cpp
2019-08-19 21:39:33 +03:00

18 lines
501 B
C++

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