mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 00:49:54 +00:00
26 lines
663 B
C++
26 lines
663 B
C++
#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);
|
|
}
|