Beispiel #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 ) return;

            fetcher.Check( SetStatus );
            if( fetcher.Done ) {
                ResourcePatcher patcher = new ResourcePatcher( fetcher );
                patcher.Run();
                game.SetScreen( new MainScreen( game ) );
                fetcher = null;
            }
        }