Пример #1
0
 public void DownloadItems(AsyncDownloader downloader, Action <string> setStatus)
 {
     this.downloader = downloader;
     DownloadMusicFiles();
     digPatcher = new SoundPatcher(digSounds, "dig_",
                                   "step_cloth1", digPath);
     digPatcher.FetchFiles(digSoundsUri, altDigSoundsUri, this);
     stepPatcher = new SoundPatcher(stepSounds, "step_",
                                    "classic jar", stepPath);
     stepPatcher.FetchFiles(stepSoundsUri, altStepSoundsUri, this);
     if (!defaultZipExists)
     {
         downloader.DownloadData(jarClassicUri, false, "classic_jar");
         downloader.DownloadData(jar162Uri, false, "162_jar");
         downloader.DownloadData(pngTerrainPatchUri, false, "terrain_patch");
         downloader.DownloadData(pngGuiPatchUri, false, "gui_patch");
     }
     SetFirstStatus(setStatus);
 }
 public void DownloadItems( AsyncDownloader downloader, Action<string> setStatus )
 {
     this.downloader = downloader;
     DownloadMusicFiles();
     digPatcher = new SoundPatcher( digSounds, "dig_", "step_cloth1" );
     digPatcher.FetchFiles( digSoundsUri, altDigSoundsUri, this );
     stepPatcher = new SoundPatcher( stepSounds, "step_", "classic jar" );
     stepPatcher.FetchFiles( stepSoundsUri, altStepSoundsUri, this );
     if( !defaultZipExists ) {
         downloader.DownloadData( jarClassicUri, false, "classic_jar" );
         downloader.DownloadData( jar162Uri, false, "162_jar" );
         downloader.DownloadData( pngTerrainPatchUri, false, "terrain_patch" );
         downloader.DownloadData( pngGuiPatchUri, false, "gui_patch" );
     }
     SetFirstStatus( setStatus );
 }