public void Show(GameServer server, GameClient client) { while (true) { arena = ArenaGenerator.Generate(server.GameAssets, seed, biome_count); UpdateItems(); ConsoleBuffer mapbuf = arena.MapBuffer(tempView); buffer = new ConsoleBuffer(); buffer.InsertBuffer(mapbuf, 0, 0); buffer.SetCursorPosition(mapbuf.Width, 0); buffer.WriteVertical("".PadRight(25, '▌')); buffer.SetCursorPosition(mapbuf.Width, 7); buffer.Write("█".PadRight(30, '─')); buffer.SetCursorPosition(mapbuf.Width + 1, 1); this.ReadMenu(); if (Selected == proitems.Length - 1) { return; } if (Selected == proitems.Length - 2) { GameState gs = new GameState(arena, max_players, port, game_name); server.Open(gs); IPEndPoint ep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), port); new ConnectingMenu().Show(client, ep); client.Close(); server.Close(); return; } } }