From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Process/Process_PtcG2C_guildcamppartyNotify.cs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs new file mode 100644 index 00000000..b9b9a26d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_guildcamppartyNotify + { + public static void Process(PtcG2C_guildcamppartyNotify roPtc) + { + XGuildCollectDocument specificDocument = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + bool flag = roPtc.Data.notify_type == 0u; + if (flag) + { + specificDocument.SetActivityState(false); + } + else + { + specificDocument.SetTime(roPtc.Data.left_time); + specificDocument.SetActivityState(true); + specificDocument.SetLotteryMachineState(roPtc.Data.lottery_list.Count != 0, false); + specificDocument.SyncNpcList(roPtc.Data.sprite_list); + } + } + } +} -- cgit v1.1-26-g67d0