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); }
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); } }