mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 19:19:55 +00:00
18 lines
501 B
C++
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;
|
|
}
|