mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 14:15:32 +00:00
3d5860d6f4
Conflicts: apps/openmw-mp/Player.cpp apps/openmw-mp/Script/Functions/Settings.cpp apps/openmw-mp/Script/Functions/Settings.hpp apps/openmw-mp/Script/Functions/World.cpp apps/openmw-mp/Script/Functions/World.hpp apps/openmw/mwgui/container.cpp apps/openmw/mwmp/LocalActor.cpp apps/openmw/mwmp/LocalPlayer.cpp apps/openmw/mwmp/WorldEvent.cpp apps/openmw/mwmp/processors/world/ProcessorContainer.hpp components/openmw-mp/Base/BaseEvent.hpp components/openmw-mp/Log.cpp components/openmw-mp/Log.hpp
28 lines
617 B
C++
28 lines
617 B
C++
//
|
|
// Created by koncord on 04.04.17.
|
|
//
|
|
|
|
#ifndef OPENMW_PROCESSORHANDSHAKE_HPP
|
|
#define OPENMW_PROCESSORHANDSHAKE_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorHandshake final: 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
|