Exemple #1
0
    /// <summary>
    /// 清理数据
    /// </summary>
    public void CleanMode(bool depth = false)
    {
        mComparingCard = false;
        mCanLookCard   = false;
        mLookCard      = false;
        mGameed        = false;
        mTurnSeatId    = 0;
        mZhuangSeatId  = 0;
        mOpt           = null;
        mChangDesk     = false;
        mAutoGen       = false;
        mHasCardSeatList.Clear();
        mSelfLookCard = null;
        mCuoCarding   = false;
        RoomState     = eGFGameState.Ready;
        if (depth)
        {
            mPlayerInfoDic.Clear();
            mSeatIdList.Clear();
        }

        List <int> list = new List <int>();

        list.AddRange(mPlayerInfoDic.Keys);
        for (int i = 0; i < list.Count; i++)
        {
            mPlayerInfoDic[list[i]].discard = false;
        }
    }
Exemple #2
0
    /// <summary>
    /// 同步玩家操作结果
    /// </summary>
    /// <param name="msg"></param>
    private void NetOnGameOptResult(MessageData msg)
    {
        OnGoldFlowerPlayerOptResult ack = msg.Read <OnGoldFlowerPlayerOptResult>();

        mView.NetOnGameOptResult(ack);
    }