openmw-tes3coop/apps/openmw/mwmp/processors/player/ProcessorHandshake.hpp
2018-03-10 22:19:44 +02:00

28 lines
612 B
C++

//
// Created by koncord on 04.04.17.
//
#ifndef OPENMW_PROCESSORHANDSHAKE_HPP
#define OPENMW_PROCESSORHANDSHAKE_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorHandshake : public PlayerProcessor
{
public:
ProcessorHandshake()
{
BPP_INIT(ID_HANDSHAKE)
}
virtual void Do(PlayerPacket &packet, BasePlayer *player)
{
packet.setPlayer(getLocalPlayer()); // player is 0 because myGuid will be set after ProcessUserMyID
packet.Send(serverAddr);
}
};
}
#endif //OPENMW_PROCESSORHANDSHAKE_HPP