forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
496 B
C++
19 lines
496 B
C++
#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;
|
|
}
|
|
|
|
void PacketActorStatsDynamic::Actor(BaseActor &actor, bool send)
|
|
{
|
|
RW(actor.creatureStats.mDynamic, send);
|
|
|
|
actor.hasStatsDynamicData = true;
|
|
}
|