Beispiel #1
0
    //自摸
    public void ZiMo(SocketModel socketModel)
    {
        List <int> dlist   = socketModel.GetData();
        int        pos     = dlist[0];
        int        mj      = dlist[1];
        string     sendPos = "";

        if (pos == GameInfo.Instance.positon)
        {
            sendPos = "bot";
        }
        else
        {
            sendPos = GameInfo.Instance.TryGetLocPos(GameInfo.Instance.positon, pos);
        }
        List <PlayerData> plist = socketModel.GetPdata();

        RoomEvent.DoZiMo(sendPos, mj, plist);
        //
        GameInfo.Instance.PlayFlag = false;
    }