diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs |
+scripts
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.cs | 65 |
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)
+ {
+ }
+ }
+}
|