public void sendMsg(GameLianQiProtocol pID, msgLianQiReqPass msg, Action <Message> action) { JsonObject jsonMsg = new JsonObject(); jsonMsg.Add("seat", msg.seat); sendMsg(pID, jsonMsg, action); }
public void onEventPass(object data) { if (!checkSelfTurn()) { CommonUtil.Util.showDialog("温馨提示", "当前不是您的回合阶段哟~"); return; } if (Room.Room.getHasAbandon()) { //已经投降了,不能操作 return; } msgLianQiReqPass rpass = new msgLianQiReqPass(); rpass.seat = Room.Room.selfSeat; ProtocolManager.getInstance().sendMsg(GameLianQiProtocol.P_GAME_LIANQI_REQ_PASS, rpass, OnRespPass); }