1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 13:19:54 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/player/ProcessorHandshake.hpp
2017-04-18 11:38:40 +08:00

28 lines
629 B
C++

//
// Created by koncord on 04.04.17.
//
#ifndef OPENMW_PROCESSORHANDSHAKE_HPP
#define OPENMW_PROCESSORHANDSHAKE_HPP
#include "apps/openmw/mwmp/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 setted after ProcessUserMyID
packet.Send(serverAddr);
}
};
}
#endif //OPENMW_PROCESSORHANDSHAKE_HPP