2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 07.01.16.
|
|
|
|
//
|
|
|
|
|
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
|
|
|
|
2017-06-02 18:23:23 +00:00
|
|
|
RW(player->npc.mName, send, 1);
|
|
|
|
RW(player->npc.mModel, send, 1);
|
|
|
|
RW(player->npc.mRace, send, 1);
|
2017-06-15 05:05:47 +00:00
|
|
|
RW(player->npc.mHair, send, 1);
|
|
|
|
RW(player->npc.mHead, send, 1);
|
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
|
|
|
|
2017-06-02 18:23:23 +00:00
|
|
|
RW(player->birthsign, send, 1);
|
2017-05-01 13:14:30 +00:00
|
|
|
|
2017-06-02 18:23:23 +00:00
|
|
|
RW(player->creatureModel, send, 1);
|
2017-05-01 13:14:30 +00:00
|
|
|
RW(player->useCreatureName, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|