1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 13:53:52 +00:00
openmw-tes3mp/components/openmw-mp/Packets/Player/PacketPlayerBaseInfo.cpp
Koncord 23684489da [General] Fix clang-tidy warning
Converting integer literal to bool, use bool literal instead
2018-07-03 02:50:21 +08:00

30 lines
705 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, true);
RW(player->npc.mModel, send, true);
RW(player->npc.mRace, send, true);
RW(player->npc.mHair, send, true);
RW(player->npc.mHead, send, true);
RW(player->npc.mFlags, send);
RW(player->birthsign, send, true);
RW(player->resetStats, send);
}