Console client: Several fixes and improvements (thanks to heyn).

This commit is contained in:
lotodore
2008-12-27 16:24:49 +00:00
parent ef8e277295
commit e4ead9e706
12 changed files with 91 additions and 21 deletions
+4
View File
@@ -113,10 +113,14 @@ namespace pokerth_console
Console.WriteLine("pokerth_console V0.1 - Copyright (C) 2008 by Lothar May");
Console.WriteLine("See COPYING.txt for license terms.");
Console.WriteLine();
Console.WriteLine("Enter your nickname:");
string name = Console.ReadLine();
Console.WriteLine("Connecting to server...");
Settings settings = new Settings();
// Parse command line options.
if (args.Length > 0)
settings.ServerSettings.Server = args[0];
PokerTHData data = new PokerTHData(name);
ConsoleCallback callback = new ConsoleCallback();
Client client = new Client(settings, data, callback);