public override void Tick()
        {
            if( fetcher == null ) return;

            fetcher.Check( SetStatus );
            if( fetcher.Done ) {
                ResourcePatcher patcher = new ResourcePatcher( fetcher );
                patcher.Run();
                game.SetScreen( new MainScreen( game ) );
                fetcher = null;
            }
        }
Beispiel #2
0
        void DownloadResources(int mouseX, int mouseY)
        {
            if (game.Downloader == null)
            {
                game.Downloader = new AsyncDownloader("null");
            }
            if (fetcher != null)
            {
                return;
            }

            fetcher = game.fetcher;
            fetcher.DownloadItems(game.Downloader, SetStatus);
            selectedWidget = null;
            Resize();
        }
        void DownloadResources( int mouseX, int mouseY )
        {
            if( game.Downloader == null )
                game.Downloader = new AsyncDownloader( "null" );
            if( fetcher != null ) return;

            fetcher = new ResourceFetcher( game.Downloader );
            fetcher.DownloadItems( SetStatus );
            selectedWidget = null;

            Resize();
        }
 public ResourcePatcher( ResourceFetcher fetcher )
 {
     jarClassic = fetcher.jarClassic;
     jar162 = fetcher.jar162;
     pngTerrainPatch = fetcher.pngTerrainPatch;
 }