public GameState Pop() { GameState S = StateStack.Pop(); S.Exit(); StateStack.Peek()?.Resume(); return(S); }
static void AppendString(string Str) { ConsoleLines.Push(ConsoleLines.Pop() + Str); System.Console.Write(Str); }