2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// 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)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
|
|
|
packetID = ID_HANDSHAKE;
|
2017-05-08 16:38:48 +00:00
|
|
|
orderChannel = CHANNEL_SYSTEM;
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
|
2017-03-06 09:44:08 +00:00
|
|
|
void PacketHandshake::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);
|
2017-01-25 15:06:15 +00:00
|
|
|
RW(player->npc.mName, send);
|
|
|
|
RW(player->passw, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|