struct IFileDownloader : public INetworkInterface { };
INetworkService.h
virtual void DownloadFile(SFileDownloadParameters& dl) = 0;
virtual float GetDownloadProgress() const = 0;
get progress of current download (0.0 - 1.0)
virtual const unsigned char* GetFileMD5() const = 0;
get md5 checksum of downloaded file (only valid when IsDownloading()==false)
virtual bool IsDownloading() const = 0;
is a download in progress
virtual void SetThrottleParameters(int datasize, int timedelay) = 0;
set throttling parameters (so as not to slow down games in progress) Probably want to turn off throttling if we're at the end of level, etc. datasize: how much data to request timedelay: how often to request it (in ms) Set both to zero to disable throttling
virtual void Stop() = 0;
stop downloads (also called when no more files to download)