2017-02-05 07:01:33 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
2017-04-14 13:00:34 +00:00
|
|
|
#include "PacketPlayerAnimFlags.hpp"
|
2017-02-05 07:01:33 +00:00
|
|
|
|
2017-04-14 13:00:34 +00:00
|
|
|
mwmp::PacketPlayerAnimFlags::PacketPlayerAnimFlags(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2017-02-05 07:01:33 +00:00
|
|
|
{
|
2017-04-14 13:00:34 +00:00
|
|
|
packetID = ID_PLAYER_ANIM_FLAGS;
|
2017-02-05 07:01:33 +00:00
|
|
|
}
|
|
|
|
|
2017-04-14 13:00:34 +00:00
|
|
|
void mwmp::PacketPlayerAnimFlags::Packet(RakNet::BitStream *bs, bool send)
|
2017-02-05 07:01:33 +00:00
|
|
|
{
|
2017-03-06 09:44:08 +00:00
|
|
|
PlayerPacket::Packet(bs, send);
|
2017-02-05 07:01:33 +00:00
|
|
|
|
|
|
|
RW(player->movementFlags, send);
|
|
|
|
RW(player->drawState, send);
|
2017-02-27 21:01:33 +00:00
|
|
|
RW(player->isFlying, send);
|
2017-02-05 07:01:33 +00:00
|
|
|
}
|