Ejemplo n.º 1
0
    public void sendMsg(GameLianQiProtocol pID, msgLianQiReqDraw msg, Action <Message> action)
    {
        JsonObject jsonMsg = new JsonObject();

        jsonMsg.Add("seat", msg.seat);
        sendMsg(pID, jsonMsg, action);
    }
Ejemplo n.º 2
0
    public void onEventDraw(object data)
    {
        if (!checkSelfTurn())
        {
            CommonUtil.Util.showDialog("温馨提示", "当前不是您的回合阶段哟~");
            return;
        }

        if (Room.Room.getHasAbandon())
        {
            //已经投降了,不能操作
            return;
        }


        msgLianQiReqDraw rd = new msgLianQiReqDraw();

        rd.seat = Room.Room.selfSeat;

        ProtocolManager.getInstance().sendMsg(GameLianQiProtocol.P_GAME_LIANQI_REQ_DRAW, rd, OnRespDraw);
    }