示例#1
0
    public override void Respond(string data)
    {
        MFRespondProtocol <MFJoinRoomRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFJoinRoomRespond> >(data);

        if (rp.data.refreshPage == 0)
        {
            MFPrepareRoomView.OnJoinRoomRespond(rp.header, rp.data);
            return;
        }

        MFUIMgr.GetUiInstance <MFPrepareRoomView>().RefreshPlayerList(rp.data.userList);
    }
示例#2
0
    private void DispatchRespond(string data)
    {
        // 随便找个int当做具体类型 反正只需要header部分
        try {
            MFLog.LogInfo(data);
            MFRespondHeader rh = MFJsonSerialzator.DeSerialize <MFRespondProtocol <int> >(data).header;
            if (rh.result != 0)
            {
                MFLog.LogError(rh.result, rh.errMsg);
            }

            MFServerAgentBase.Receive(rh.protocolId, data);
        }
        catch (Exception e) {
            MFLog.LogError(e.ToString());
            MFLog.LogError(data);
        }
    }
示例#3
0
    public override void Respond(string data)
    {
        MFRespondProtocol <MFGetBookDetailRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFGetBookDetailRespond> >(data);

        MFUIMgr.GetUiInstance <MFBookView>().OnGetBookDetailRespond(rp.header, rp.data);
    }
示例#4
0
    public override void Respond(string data)
    {
        MFRespondProtocol <MFGetCharacterListRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFGetCharacterListRespond> >(data);

        MFUIMgr.GetUiInstance <MFPrepareRoomView>().OnGetCharacterListRespond(rp.header, rp.data);
    }
示例#5
0
    public override void Respond(string data)
    {
        MFRespondProtocol <MFJoinRoomRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFJoinRoomRespond> >(data);

        MFPrepareRoomView.OnJoinRoomRespond(rp.header, rp.data);
    }
示例#6
0
    public static void OnCreateRoomRespond(string data)
    {
        MFRespondProtocol <MFCreateRoomRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFCreateRoomRespond> >(data);

        MFUIMgr.GetUiInstance <MFBookView>().OnCreateRoomRespond(rp.header, rp.data);
    }
示例#7
0
    public static void OnQQLoginRespond(string data)
    {
        MFRespondProtocol <MFQQLoginRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFQQLoginRespond> >(data);

        MFUIMgr.GetUiInstance <MFLoginView>().OnQQLoginRespond(rp.header, rp.data);
    }