openmw-tes3coop/components/openmw-mp/Packets/Player/PacketPlayerBaseInfo.cpp
David Cernat c8abd11f5d [General] Move creature disguises for players to PlayerShapeshift packet
Additionally, make associated variables clearer, and move associated server script functions next to other shapeshifting functions.
2018-04-05 15:42:06 +03:00

28 lines
652 B
C++

//
// Created by koncord on 07.01.16.
//
#include "PacketPlayerBaseInfo.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
using namespace mwmp;
PacketPlayerBaseInfo::PacketPlayerBaseInfo(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_PLAYER_BASEINFO;
}
void PacketPlayerBaseInfo::Packet(RakNet::BitStream *bs, bool send)
{
PlayerPacket::Packet(bs, send);
RW(player->npc.mName, send, 1);
RW(player->npc.mModel, send, 1);
RW(player->npc.mRace, send, 1);
RW(player->npc.mHair, send, 1);
RW(player->npc.mHead, send, 1);
RW(player->npc.mFlags, send);
RW(player->birthsign, send, 1);
}