Console client: Retrieve player names.
This commit is contained in:
@@ -29,13 +29,17 @@ namespace pokerth_console
|
||||
static int Main(string[] args)
|
||||
{
|
||||
Settings settings = new Settings();
|
||||
GameInfoList list = new GameInfoList();
|
||||
Client client = new Client(settings);
|
||||
PokerTHData data = new PokerTHData();
|
||||
Client client = new Client(settings, data);
|
||||
client.Connect();
|
||||
client.Start(list);
|
||||
client.Start();
|
||||
Thread.Sleep(5000);
|
||||
client.SetTerminateFlag();
|
||||
Console.Write(list.ToString());
|
||||
Console.WriteLine("Games:");
|
||||
Console.Write(data.GameList.ToString());
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Players:");
|
||||
Console.Write(data.PlayerList.ToString());
|
||||
client.WaitTermination();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user