internal TexasGameInfo buildTexasGameInfo() { TexasGameInfo texasGameInfo = new TexasGameInfo(); texasGameInfo.ChipPots = buildChipPotValues(); texasGameInfo.CenterCards = buildCenterCardIds(); texasGameInfo.CurrentPlaying = this.CurrentPlayer.UserKey; texasGameInfo.TableState = this.TableState; return(texasGameInfo); }
private void sendTexasGameInfo(TexasModel texasModel) { Log.DebugFormat("SEND TABLE INFO"); TexasGameInfo texasGameInfo = texasModel.buildTexasGameInfo(); var param = new Dictionary <byte, object>() { { (byte)ParameterCode.TexasGame, JsonConvert.SerializeObject(texasGameInfo) }, }; var eevent = new Event((byte)TexasEventCode.GameInfo, null, param); this.SendNotification(RoomNotification.SEND_EVENT_TO_ALL_USER, eevent); }