From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../PTC/Process/Process_PtcG2C_OpenSystemNtf.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs new file mode 100644 index 00000000..879ea557 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs @@ -0,0 +1,43 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_OpenSystemNtf + { + public static void Process(PtcG2C_OpenSystemNtf roPtc) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("XPlayerData == null", null, null, null, null, null); + } + else + { + int i = 0; + int count = roPtc.Data.sysIDs.Count; + while (i < count) + { + xplayerData.CacheOpenSystem(roPtc.Data.sysIDs[i]); + i++; + } + i = 0; + count = roPtc.Data.closeSysIDs.Count; + while (i < count) + { + xplayerData.CloseSystem(roPtc.Data.closeSysIDs[i]); + i++; + } + XOperatingActivityDocument.Doc.OnSystemChanged(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + XActivityDocument.Doc.OnSystemChanged(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + WeekEndNestDocument.Doc.OnSystemChanged(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + XThemeActivityDocument specificDocument = XDocuments.GetSpecificDocument(XThemeActivityDocument.uuID); + specificDocument.OnSystemChanged(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + XFPStrengthenDocument specificDocument2 = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + specificDocument2.SetNew(roPtc.Data.sysIDs); + XWelfareDocument.Doc.SetBackFlowOpenSystem(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + } + } + } +} -- cgit v1.1-26-g67d0