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

namespace XMainClient
{
	internal class Process_PtcG2C_QueryRoleStateAck
	{
		public static void Process(PtcG2C_QueryRoleStateAck roPtc)
		{
			bool flag = DlgBase<BattleMain, BattleMainBehaviour>.singleton.IsVisible() && DlgBase<BattleMain, BattleMainBehaviour>.singleton.TeamMonitor != null;
			if (flag)
			{
				DlgBase<BattleMain, BattleMainBehaviour>.singleton.TeamMonitor.OnQueryRoleStates(roPtc.Data);
			}
			bool flag2 = DlgBase<SpectateSceneView, SpectateSceneBehaviour>.singleton.IsVisible();
			if (flag2)
			{
				XSpectateTeamMonitorHandler spectateTeamMonitor = DlgBase<SpectateSceneView, SpectateSceneBehaviour>.singleton.SpectateTeamMonitor;
				bool flag3 = spectateTeamMonitor != null;
				if (flag3)
				{
					bool flag4 = spectateTeamMonitor.m_TeamMonitor_Left.IsVisible();
					if (flag4)
					{
						spectateTeamMonitor.m_TeamMonitor_Left.OnQueryRoleStates(roPtc.Data);
					}
					bool flag5 = spectateTeamMonitor.m_TeamMonitor_Right.IsVisible();
					if (flag5)
					{
						spectateTeamMonitor.m_TeamMonitor_Right.OnQueryRoleStates(roPtc.Data);
					}
				}
			}
		}
	}
}