コード例 #1
0
        public GangCardRequest(int cardPoint, int gangType)
        {
            headCode = APIS.GANGPAI_REQUEST;
            GangRequestVO vo = new GangRequestVO();

            vo.cardPoint   = cardPoint;
            vo.gangType    = gangType;
            messageContent = JsonMapper.ToJson(vo);
        }
コード例 #2
0
ファイル: GangCardRequest.cs プロジェクト: wly2/BaiLaoHui
        public GangCardRequest(int cardPoint, int gangType)
        {
            headCode = APIS.GANGPAI_REQUEST;
            var vo = new GangRequestVO
            {
                cardPoint = cardPoint,
                gangType  = gangType
            };

            messageContent = JsonMapper.ToJson(vo);
        }
コード例 #3
0
        public void myGangBtnClick()
        {
            //TODO 多张可以杠的牌
            _data.gangCardPoint = int.Parse(_data.gangPaiList [0]);
            _data.gangPaiList   = null;
            GangRequestVO vo = new GangRequestVO();

            vo.cardPoint = _data.gangCardPoint;
            vo.gangType  = 0;
            GameManager.getInstance().Server.requset(APIS.GANGPAI_REQUEST, JsonMapper.ToJson(vo));
            SoundManager.getInstance().playSoundByAction("gang", GlobalData.getInstance().myAvatarVO.account.sex);
            _actionHlpr.cleanBtnShow();
            _actionHlpr.showEffect(ActionType.GANG);
        }