summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs
new file mode 100644
index 00000000..6cd8bc08
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs
@@ -0,0 +1,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);
+ }
+ }
+ }
+ }
+ }
+}