summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs
blob: 81df9bf42098a15dfa9c404f9f8e1d68f7cd4fdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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)
		{
		}
	}
}