openmw-tes3coop/components/openmw-mp/Packets/Player/PacketDrawState.cpp

21 lines
472 B
C++
Raw Normal View History

//
// Created by koncord on 15.01.16.
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketDrawState.hpp"
2016-10-17 12:54:36 +00:00
mwmp::PacketDrawState::PacketDrawState(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_GAME_DRAWSTATE;
}
void mwmp::PacketDrawState::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player, bool send)
{
2016-10-17 12:54:36 +00:00
PlayerPacket::Packet(bs, player, send);
RW(player->movementFlags, send);
RW(player->drawState, send);
}