void OnApplicationPause(bool status) { if (status) { Broker.Global.Publish(GamePause.Get()); } else { Broker.Global.Publish(GameResume.Get()); } }
public static void ContinueGame() { Drawer.DrawContinueMenu(); int x = Console.CursorLeft; int y = Console.CursorTop; string name = EnterName(); while (!new FileWorker().CheckNameInSaves(name)) { Console.Write("Save does not exist\r"); Thread.Sleep(1200); Console.Write(new string(' ', 19) + "\r"); Console.SetCursorPosition(x, y); Console.Write(new string(' ', name.Length) + "\r"); Console.SetCursorPosition(x, y); name = EnterName(); } Console.Clear(); VisualGame.StartGame(GameResume.GetGame(name)); }