Console client: Now functional, but several features are still missing.

This commit is contained in:
lotodore
2008-12-25 21:12:59 +00:00
parent 77bb02113a
commit 5623e0865d
11 changed files with 216 additions and 23 deletions
+8 -5
View File
@@ -66,17 +66,20 @@ namespace pokerth_lib
}
}
public override string ToString()
public string GetOpenGamesString()
{
string outString = "";
lock (m_list)
{
foreach (KeyValuePair<uint, GameInfo> i in m_list)
{
outString += i.Key;
outString += " ";
outString += i.Value.Name;
outString += '\n';
if (i.Value.CurrentMode == GameInfo.Mode.Created)
{
outString += i.Key;
outString += " ";
outString += i.Value.Name;
outString += '\n';
}
}
}
return outString;