openmw-tes3coop/components/openmw-mp/Packets/Player/PacketHandshake.cpp
2016-10-19 19:37:10 +03:00

20 lines
471 B
C++

//
// Created by koncord on 28.04.16.
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketHandshake.hpp"
using namespace mwmp;
PacketHandshake::PacketHandshake(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_HANDSHAKE;
}
void PacketHandshake::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
{
PlayerPacket::Packet(bs, player, send);
RW(player->Npc()->mName, send);
RW(*player->GetPassw(), send);
}