Console client: Added console callback, display more information. Cache hand state.

This commit is contained in:
lotodore
2008-12-23 14:24:37 +00:00
parent 28e7accd90
commit 04616ef89c
25 changed files with 495 additions and 104 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ namespace pokerth_console
{
if (size != 8)
throw new NetPacketException("NetTypeStartEvent invalid size.");
Properties.Add(PropertyType.StartFlags,
Properties.Add(PropType.StartFlags,
Convert.ToString(IPAddress.NetworkToHostOrder((short)r.ReadUInt16())));
}
@@ -64,7 +64,7 @@ namespace pokerth_console
w.Write(IPAddress.HostToNetworkOrder((short)Type));
w.Write(IPAddress.HostToNetworkOrder((short)8));
w.Write(IPAddress.HostToNetworkOrder((short)
Convert.ToUInt16(Properties[PropertyType.StartFlags])));
Convert.ToUInt16(Properties[PropType.StartFlags])));
w.Write(IPAddress.HostToNetworkOrder((short)0)); // reserved
return memStream.ToArray();