#pragma once #include "stdafx.h" #include "GameClientConnection.h" #include "INotificationListener.h" class ClientConnectionData; class thread; class GameClient : public INotificationListener { private: static unique_ptr Instance; unique_ptr _clientThread; atomic _stop; shared_ptr _socket; unique_ptr _connection; bool _connected = false; void PrivateConnect(shared_ptr connectionData); void Exec(); void PrivateDisconnect(); public: GameClient(); ~GameClient(); static bool Connected(); static void Connect(shared_ptr connectionData); static void Disconnect(); void ProcessNotification(ConsoleNotificationType type, void* parameter); };