openmw-tes3coop/components/openmw-mp/Packets/Player/PacketHandshake.cpp

21 lines
434 B
C++
Raw Normal View History

//
// Created by koncord on 28.04.16.
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketHandshake.hpp"
using namespace mwmp;
2016-10-17 12:54:36 +00:00
PacketHandshake::PacketHandshake(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_HANDSHAKE;
}
void PacketHandshake::Packet(RakNet::BitStream *bs, bool send)
{
PlayerPacket::Packet(bs, send);
RW(player->npc.mName, send);
RW(player->passw, send);
}