// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Network module" // For conditions of distribution and use, see copyright notice in Export.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: #ifndef NAZARA_PLATFORM_WEB std::unique_ptr m_curlLibrary; #endif static Network* s_instance; }; } #endif // NAZARA_NETWORK_HPP