mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-24 20:23:51 +00:00
29 lines
651 B
C++
29 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
|