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