summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs
blob: 2afaeeb8df691528f69fa170a9b174bab39445a4 (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
using System;
using XMainClient.UI;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Process_PtcG2C_ScenePrepareInfoNtf
	{
		public static void Process(PtcG2C_ScenePrepareInfoNtf roPtc)
		{
			bool flag = XSingleton<XGame>.singleton.CurrentStage.Stage != EXStage.World;
			if (!flag)
			{
				bool isPVPScene = XSingleton<XScene>.singleton.IsPVPScene;
				if (isPVPScene)
				{
					DlgBase<BattleMain, BattleMainBehaviour>.singleton.SetLoadingPrompt(roPtc.Data.unreadyroles, true);
				}
				else
				{
					DlgBase<LoadingDlg, LoadingDlgBehaviour>.singleton.SetLoadingPrompt(roPtc.Data.unreadyroles);
				}
				for (int i = 0; i < roPtc.Data.unreadyroles.Count; i++)
				{
					XSingleton<XDebug>.singleton.AddGreenLog("roles: ", roPtc.Data.unreadyroles[i], " not ready yet.", null, null, null);
				}
				bool flag2 = roPtc.Data.unreadyroles.Count > 0;
				if (flag2)
				{
					XSingleton<XDebug>.singleton.AddGreenLog("still has ", roPtc.Data.unreadyroles.Count.ToString(), " unready.", null, null, null);
				}
			}
		}
	}
}