summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs65
1 files changed, 65 insertions, 0 deletions
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<UiUtility>.singleton.OnGetInvalidRequest(fullName);
+ }
+ else
+ {
+ bool flag2 = oArg.sceneID != 0u && oArg.sceneID != 2010u;
+ if (flag2)
+ {
+ XSweepDocument specificDocument = XDocuments.GetSpecificDocument<XSweepDocument>(XSweepDocument.uuID);
+ specificDocument.GetReward(oRes);
+ DlgBase<DungeonSelect, DungeonSelectBehaviour>.singleton.OnGotSweepRes();
+ }
+ else
+ {
+ ErrorCode result = oRes.result;
+ if (result != ErrorCode.ERR_SUCCESS)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(oRes.result, "fece00");
+ }
+ else
+ {
+ bool flag3 = DlgBase<BossRushDlg, BossRushBehavior>.singleton.IsVisible();
+ if (flag3)
+ {
+ XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_BossRush, 0UL);
+ }
+ bool flag4 = DlgBase<TheExpView, TheExpBehaviour>.singleton.IsVisible();
+ if (flag4)
+ {
+ XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument<XTeamDocument>(XTeamDocument.uuID);
+ specificDocument2.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null);
+ DlgBase<TheExpView, TheExpBehaviour>.singleton.RefreshLeftCount();
+ }
+ bool flag5 = DlgBase<XDragonNestView, XDragonNestBehaviour>.singleton.IsVisible();
+ if (flag5)
+ {
+ XDragonNestDocument specificDocument3 = XDocuments.GetSpecificDocument<XDragonNestDocument>(XDragonNestDocument.uuID);
+ specificDocument3.SendReqDragonNestInfo();
+ }
+ }
+ }
+ }
+ }
+
+ public static void OnTimeout(SweepArg oArg)
+ {
+ }
+ }
+}