mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:49:56 +00:00
1b259e2d33
Created Package system
29 lines
691 B
C++
29 lines
691 B
C++
//
|
|
// Created by koncord on 07.01.16.
|
|
//
|
|
|
|
#include "PacketBaseInfo.hpp"
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
using namespace mwmp;
|
|
|
|
PacketBaseInfo::PacketBaseInfo(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
{
|
|
packetID = ID_GAME_BASE_INFO;
|
|
}
|
|
|
|
void PacketBaseInfo::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
|
{
|
|
BasePacket::Packet(bs, player, send);
|
|
|
|
RW(player->Npc()->mName, send);
|
|
RW(player->Npc()->mModel, send);
|
|
RW(player->Npc()->mRace, send);
|
|
RW(player->Npc()->mClass, send);
|
|
RW(player->Npc()->mHair, send);
|
|
RW(player->Npc()->mHead, send);
|
|
|
|
RW(player->Npc()->mFlags, send);
|
|
|
|
RW(*player->BirthSign(), send);
|
|
}
|