2017-02-05 07:01:33 +00:00
|
|
|
#include "PacketPlayerBaseInfo.hpp"
|
2016-01-12 03:41:44 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
2017-02-05 07:01:33 +00:00
|
|
|
PacketPlayerBaseInfo::PacketPlayerBaseInfo(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-02-05 07:01:33 +00:00
|
|
|
packetID = ID_PLAYER_BASEINFO;
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
|
2017-03-06 09:44:08 +00:00
|
|
|
void PacketPlayerBaseInfo::Packet(RakNet::BitStream *bs, bool send)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-03-06 09:44:08 +00:00
|
|
|
PlayerPacket::Packet(bs, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2018-07-02 18:50:21 +00:00
|
|
|
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);
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2017-01-25 15:06:15 +00:00
|
|
|
RW(player->npc.mFlags, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2018-07-02 18:50:21 +00:00
|
|
|
RW(player->birthsign, send, true);
|
2018-04-09 16:24:24 +00:00
|
|
|
|
|
|
|
RW(player->resetStats, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|