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); }
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); } }
public override void Respond(string data) { MFRespondProtocol <MFGetBookDetailRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFGetBookDetailRespond> >(data); MFUIMgr.GetUiInstance <MFBookView>().OnGetBookDetailRespond(rp.header, rp.data); }
public override void Respond(string data) { MFRespondProtocol <MFGetCharacterListRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFGetCharacterListRespond> >(data); MFUIMgr.GetUiInstance <MFPrepareRoomView>().OnGetCharacterListRespond(rp.header, rp.data); }
public override void Respond(string data) { MFRespondProtocol <MFJoinRoomRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFJoinRoomRespond> >(data); MFPrepareRoomView.OnJoinRoomRespond(rp.header, rp.data); }
public static void OnCreateRoomRespond(string data) { MFRespondProtocol <MFCreateRoomRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFCreateRoomRespond> >(data); MFUIMgr.GetUiInstance <MFBookView>().OnCreateRoomRespond(rp.header, rp.data); }
public static void OnQQLoginRespond(string data) { MFRespondProtocol <MFQQLoginRespond> rp = MFJsonSerialzator.DeSerialize <MFRespondProtocol <MFQQLoginRespond> >(data); MFUIMgr.GetUiInstance <MFLoginView>().OnQQLoginRespond(rp.header, rp.data); }