mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 08:49:55 +00:00
28 lines
615 B
C++
28 lines
615 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 setted after ProcessUserMyID
|
|
packet.Send(serverAddr);
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORHANDSHAKE_HPP
|