Esempio n. 1
0
        /// <summary>
        /// Grabs a fresh copy of the manifest file
        /// </summary>
        private static void GrabManifest()
        {
            Log.Write("Grabbing manifest list from server...");
            downloader = new AssetDownloader();
            downloader.CurrentDirectory = DownloadLocation;

            downloader.CurrentUrl = CurrentUrl;

            downloader.OnUpdateComplete += UpdateComplete;

            downloader.DownloadAssetList(manifest, false);
        }
Esempio n. 2
0
        /// <summary>
        /// Starts our downloading process
        /// </summary>
        public static void Begin()
        {
            Program.running = true;

            Log.Write("Grabbing hash list from server...");

            downloader = new AssetDownloader();
            downloader.CurrentDirectory = DownloadLocation;

            downloader.CurrentUrl = CurrentUrl;

            downloader.OnUpdateComplete += GrabManifest;

            downloader.DownloadAssetList(hashList, true);
        }