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_Sweep.cs | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs new file mode 100644 index 00000000..81df9bf4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.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_Sweep + { + public static void OnReply(SweepArg oArg, SweepRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oArg.sceneID != 0u && oArg.sceneID != 2010u; + if (flag2) + { + XSweepDocument specificDocument = XDocuments.GetSpecificDocument(XSweepDocument.uuID); + specificDocument.GetReward(oRes); + DlgBase.singleton.OnGotSweepRes(); + } + else + { + ErrorCode result = oRes.result; + if (result != ErrorCode.ERR_SUCCESS) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_BossRush, 0UL); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument2.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + DlgBase.singleton.RefreshLeftCount(); + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + XDragonNestDocument specificDocument3 = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + specificDocument3.SendReqDragonNestInfo(); + } + } + } + } + } + + public static void OnTimeout(SweepArg oArg) + { + } + } +} -- cgit v1.1-26-g67d0