mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 16:49:55 +00:00
20 lines
478 B
C++
20 lines
478 B
C++
//
|
|
// Created by koncord on 15.01.16.
|
|
//
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include "PacketDrawState.hpp"
|
|
|
|
mwmp::PacketDrawState::PacketDrawState(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_GAME_DRAWSTATE;
|
|
}
|
|
|
|
void mwmp::PacketDrawState::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player, bool send)
|
|
{
|
|
PlayerPacket::Packet(bs, player, send);
|
|
|
|
RW(*player->MovementFlags(), send);
|
|
|
|
RW(*player->DrawState(), send);
|
|
}
|