1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 13:49:55 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Player/PacketPlayerBaseInfo.cpp

28 lines
662 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, BasePlayer *player, bool send)
{
PlayerPacket::Packet(bs, player, send);
RW(player->npc.mName, send);
RW(player->npc.mModel, send);
RW(player->npc.mRace, send);
RW(player->npc.mHair, send);
RW(player->npc.mHead, send);
RW(player->npc.mFlags, send);
RW(player->birthsign, send);
}