turtle-wow-source-kinda/Dumps/Source Code/16 - Development_server/patch_1171/tools/TurtlePatcher/Downloader.h

21 lines
475 B
C
Raw Normal View History

2024-08-06 16:06:40 +00:00
// Giperion for Turtle WoW
#pragma once
#include <functional>
class IDownloader
{
public:
virtual bool Init(const std::string& InHostPath) = 0;
virtual bool DownloadAsync() = 0;
virtual void CancelDownload() = 0;
virtual ~IDownloader();
// All callbacks may be invoked from different threads!
std::function<void()> OnAbortDownload;
std::function<void()> OnDownloadComplete;
std::function<void(float)> DownloadProgressCallback;
};
IDownloader* CreateDownloader();