示例#1
0
        internal TexasGameInfo buildTexasGameInfo()
        {
            TexasGameInfo texasGameInfo = new TexasGameInfo();

            texasGameInfo.ChipPots       = buildChipPotValues();
            texasGameInfo.CenterCards    = buildCenterCardIds();
            texasGameInfo.CurrentPlaying = this.CurrentPlayer.UserKey;
            texasGameInfo.TableState     = this.TableState;
            return(texasGameInfo);
        }
示例#2
0
        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);
        }