using System; using System.Reflection; using KKSG; using XMainClient.UI; using XMainClient.UI.UICommon; using XUtliPoolLib; namespace XMainClient { internal class Process_RpcC2G_BossRushReq { public static void OnReply(BossRushArg oArg, BossRushRes oRes) { bool flag = oRes.ret == ErrorCode.ERR_INVALID_REQUEST; if (flag) { string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; XSingleton.singleton.OnGetInvalidRequest(fullName); } else { XBossBushDocument specificDocument = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); bool flag2 = oRes.ret == ErrorCode.ERR_SUCCESS; if (flag2) { bool flag3 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_BASEDATA || oArg.type == BossRushReqStatus.BOSSRUSH_REQ_REFRESH; if (flag3) { specificDocument.Resp(oArg.type, oRes.data); } else { bool flag4 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_APPEARANCE || oArg.type == BossRushReqStatus.BOSSRUSH_REQ_CONTINUE; if (flag4) { specificDocument.unitAppearance = oRes.bossApp; DlgBase.singleton.GoBattle(); } else { bool flag5 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_LEFTCOUNT; if (flag5) { specificDocument.leftChanllageCnt = oRes.leftcount; XActivityDocument.Doc.OnGetDayCount(); } else { XSingleton.singleton.AddLog("rcv server msg!", null, null, null, null, null, XDebugColor.XDebug_None); } } } } else { XSingleton.singleton.AddLog("bossrush err=>", oRes.ret.ToString(), null, null, null, null, XDebugColor.XDebug_None); } } } public static void OnTimeout(BossRushArg oArg) { } } }