Esempio n. 1
0
        public static void DeleteGame(HeroClass cl, bool deleteLevels)
        {
            Game.Instance.DeleteFile(GameFile(cl));

            if (deleteLevels)
            {
                var localDepth = 1;
                while (Game.Instance.DeleteFile(Utils.Format(DepthFile(cl), localDepth)))
                {
                    localDepth++;
                }
            }

            GamesInProgress.Delete(cl);
        }
Esempio n. 2
0
        public static void SaveAll()
        {
            if (Hero.IsAlive)
            {
                Actor.FixTime();
                SaveGame(GameFile(Hero.heroClass));
                SaveLevel();

                GamesInProgress.Set(Hero.heroClass, Depth, Hero.Lvl);
            }
            else
            if (WndResurrect.Instance != null)
            {
                WndResurrect.Instance.Hide();
                Hero.ReallyDie(WndResurrect.CauseOfDeath);
            }
        }