From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../PTC/Process/Process_RpcC2G_BossRushReq.cs | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs new file mode 100644 index 00000000..fdd351ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs @@ -0,0 +1,65 @@ +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) + { + } + } +} -- cgit v1.1-26-g67d0