Initial Commit
[wakedown.gameserver.git] / ConsoleUI.cs
blobeb5075817489d4076155ce895b2a6a78bc994420
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
5 namespace Wakedown.GameServer
7 class ConsoleUI
9 public ConsoleUI()
11 Initializate();
14 static void Initializate()
16 Console.WriteLine("Welcome to Wakedown's GameServer console.");
17 ConsoleKeyInfo key;
19 while (ReadSomeCommand(out key))
25 static bool ReadSomeCommand(out ConsoleKeyInfo key)
27 Console.Write(">");
28 key = Console.ReadKey();
29 Console.WriteLine();
30 if (key.Key == ConsoleKey.Escape)
31 return false;
32 return true;