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
|
|
|
}
|
|
|
|
|
2019-12-04 08:17:33 +00:00
|
|
|
void mwmp::PacketPlayerAnimFlags::Packet(RakNet::BitStream *newBitstream, bool send)
|
2017-02-05 07:01:33 +00:00
|
|
|
{
|
2019-12-04 08:17:33 +00:00
|
|
|
PlayerPacket::Packet(newBitstream, 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);
|
2019-12-01 16:13:24 +00:00
|
|
|
RW(player->hasTcl, send);
|
2017-02-05 07:01:33 +00:00
|
|
|
}
|