示例#1
0
 public DownloadItem(string url, string path, OutGameManager.DownloadFileInfo downloadFileInfo = null, string extra_postfix = "")
 {
     DownloadFileInfo     = downloadFileInfo;
     m_srcUrl             = url;
     m_savePath           = path;
     m_isStartDownload    = false;
     m_fileNameWithoutExt = Path.GetFileNameWithoutExtension(m_srcUrl);
     m_fileExt            = Path.GetExtension(m_srcUrl);
     m_saveFilePath       = string.Format("{0}/{1}{2}", m_savePath, m_fileNameWithoutExt, m_fileExt) + extra_postfix;
 }
示例#2
0
 public WWWDownloadItem(string url, string path, OutGameManager.DownloadFileInfo downloadFileInfo = null) : base(url, path, downloadFileInfo)
 {
 }
示例#3
0
 public HttpDownloadItem(string url, string path, OutGameManager.DownloadFileInfo downloadFileInfo = null, string postfix = "") : base(url, path, downloadFileInfo, postfix)
 {
     m_tempSaveFilePath = string.Format("{0}/{1}{2}", m_savePath, m_fileNameWithoutExt, m_tempFileExt);
 }