openmw-tes3coop/components/openmw-mp/Packets/Actor/PacketActorAnimFlags.cpp

18 lines
450 B
C++
Raw Normal View History

#include <components/openmw-mp/NetworkMessages.hpp>
#include <components/openmw-mp/Log.hpp>
#include "PacketActorAnimFlags.hpp"
using namespace mwmp;
PacketActorAnimFlags::PacketActorAnimFlags(RakNet::RakPeerInterface *peer) : ActorPacket(peer)
{
packetID = ID_ACTOR_ANIM_FLAGS;
}
2017-06-02 19:42:10 +00:00
void PacketActorAnimFlags::Actor(BaseActor &actor, bool send)
{
2017-06-02 19:42:10 +00:00
RW(actor.movementFlags, send);
RW(actor.drawState, send);
RW(actor.isFlying, send);
}