public void OnServerResponse(ISFSObject response) { var type = response.GetInt("type"); switch (type) { case (int)GameResponseState.BeginBet: //给goldrank 和ssz Clear(); var rankData = new Rank(); rankData.SetRank(response); _gdata.GoldRank = rankData.GoldRank; TableUserShow(); TipCtrl.CompareCardTip(); TipCtrl.BetTime(response.GetInt("cd")); _gdata.BeginBet = true; BetCtrl.ShowChip(); BetCtrl.Init(); CardCtrl.CreatCards(); break; case (int)GameResponseState.StopBet: _gdata.BeginBet = false; BetCtrl.HideChip(); TipCtrl.StopBetTip(); break; case (int)GameResponseState.Bet: BetCtrl.Bet(response); break; case (int)GameResponseState.RollResult: //牌值信息 CardValue cardValue = new CardValue(); cardValue.SetCardValue(response); CardCtrl.ShowCardValue(cardValue); break; case (int)GameResponseState.GameResult: App.GameData.GStatus = YxEGameStatus.Normal; Result result = new Result(); result.SetResult(response); _gdata.RecordCardType.Add(result.WinType); _gdata.RecordSpot.Add(result.WinArea); TrendCtrl.SetRecord(true); _resultShowList.Clear(); if (result.IsHasLuck) { _resultShowList.Add(2); } _resultShowList.Add(result.WinArea); TipCtrl.Result(_resultShowList); SpecialPlayers[0].Clear(); if (_win != null) { _isFirst = false; _win.UpdateView(_isFirst); } break; } }