// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Network module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_NETWORK_HPP #define NAZARA_NETWORK_HPP #include #include #include #include namespace Nz { class WebService; class NAZARA_NETWORK_API Network : public ModuleBase { friend ModuleBase; public: using Dependencies = TypeList; struct Config; Network(Config config); ~Network(); std::unique_ptr InstantiateWebService(); struct Config { // Initialize web services and fails module initialization if it failed to initialize them bool webServices = false; }; private: std::unique_ptr m_curlLibrary; static Network* s_instance; }; } #endif // NAZARA_NETWORK_HPP