Ejemplo n.º 1
0
        //------------------------------------------------------------------------------------------------------

        #region 开牌比对 公开房间所有牌型  结算
        /// <summary>
        /// 开牌比对 公开房间所有牌型  结算
        /// </summary>
        /// <param name="obj"></param>
        public void RoomOpenPokerSettle(byte[] obj)
        {
            Debug.Log("开牌了");
            NiuNiuGameCtrl.Instance.UIRubPokerViewClose();

            NN_ROOM_CHECK proto = NN_ROOM_CHECK.decode(obj);

            NiuNiuGameCtrl.Instance.m_Result = proto;
            RoomNiuNiuProxy.Instance.RoomOpenPokerSettle(proto);
        }
Ejemplo n.º 2
0
    /// <summary>
    /// 打开结束界面
    /// </summary>
    private void OpenRankList_NiuNiu()
    {
        if (m_UISettleView != null)
        {
            m_UISettleView.Close();
        }


        UIViewUtil.Instance.LoadWindowAsync(UIWindowType.RankList_NiuNiu, (GameObject go) =>
        {
            m_UIResultView = go.GetComponent <UINiuNiuRankListView>();
            m_UIResultView.ShowConclusionClusionPanel(RoomNiuNiuProxy.Instance.CurrentRoom);
            //m_UIResultView.SetUI(m_Result);
            m_Result = null;
        });
    }
Ejemplo n.º 3
0
        //处理开牌结算数据
        public void RoomOpenPokerSettle(NN_ROOM_CHECK proto)
        {
            //同步数据
            CurrentRoom.SetRoom(proto.nn_room);
            CurrentRoom.roomStatus = NN_ENUM_ROOM_STATUS.RSETTLE;


            //Debug.Log(string.Format("-----------------开牌结算------------------------------------------------ "));
            //for (int i = 0; i < CurrentRoom.SeatList.Count; i++)
            //{
            //    if (CurrentRoom.SeatList[i].PlayerId > 0)
            //    {
            //        if (CurrentRoom.SeatList[i].PokerList[0].index > 0)
            //        {
            //            for (int j = 0; j < CurrentRoom.SeatList[i].PokerList.Count; j++)
            //            {
            //                Poker poker = CurrentRoom.SeatList[i].PokerList[j];
            //                Debug.Log(string.Format("------------------------------------- 玩家手牌  {0}   {1}    {2}", poker.index, poker.color, poker.size));
            //            }

            //        }

            //    }
            //}


            //SetCountDown();

            //处理小结算SceneView
            TransferData data = new TransferData();

            data.SetValue <NiuNiu.Room>("CurrentRoom", CurrentRoom);
            SendNotification(ConstDefine_NiuNiu.ObKey_RoomOpenPokerSettle, data);

            SendRoomInfoChangeNotify();
        }