Exemplo n.º 1
0
        public override void Tick()
        {
            if (fetcher == null || failed)
            {
                return;
            }

            if (!fetcher.Check(SetStatus))
            {
                failed = true;
            }

            if (fetcher.Done)
            {
                if (!fetcher.defaultZipExists)
                {
                    ResourcePatcher patcher = new ResourcePatcher(fetcher);
                    patcher.Run();
                }
                fetcher = null;
                GC.Collect();
                game.TryLoadTexturePack();
                game.SetScreen(new MainScreen(game));
            }
        }
        public override void Tick()
        {
            if( fetcher == null || failed ) return;
            CheckCurrentProgress();

            if( !fetcher.Check( SetStatus ) )
                failed = true;

            if( fetcher.Done ) {
                if( !fetcher.defaultZipExists ) {
                    ResourcePatcher patcher = new ResourcePatcher( fetcher );
                    patcher.Run();
                }
                fetcher = null;
                GC.Collect();
                game.TryLoadTexturePack();
                GotoNextMenu();
            }
        }