1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 14:23:51 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/system/ProcessorSystemHandshake.hpp

28 lines
651 B
C++

#ifndef OPENMW_PROCESSORSYSTEMHANDSHAKE_HPP
#define OPENMW_PROCESSORSYSTEMHANDSHAKE_HPP
#include <components/openmw-mp/Base/BaseSystem.hpp>
#include "apps/openmw/mwmp/Main.hpp"
#include "../SystemProcessor.hpp"
namespace mwmp
{
class ProcessorSystemHandshake final: public SystemProcessor
{
public:
ProcessorSystemHandshake()
{
BPP_INIT(ID_SYSTEM_HANDSHAKE)
}
virtual void Do(SystemPacket &packet, BaseSystem *system)
{
packet.setSystem(Main::get().getLocalSystem());
packet.Send(serverAddr);
}
};
}
#endif //OPENMW_PROCESSORSYSTEMHANDSHAKE_HPP