public GangCardRequest(int cardPoint, int gangType) { headCode = APIS.GANGPAI_REQUEST; GangRequestVO vo = new GangRequestVO(); vo.cardPoint = cardPoint; vo.gangType = gangType; messageContent = JsonMapper.ToJson(vo); }
public GangCardRequest(int cardPoint, int gangType) { headCode = APIS.GANGPAI_REQUEST; var vo = new GangRequestVO { cardPoint = cardPoint, gangType = gangType }; messageContent = JsonMapper.ToJson(vo); }
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); }