summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs
blob: 0b7032fae97b1429d949db958d6d6b10324aed40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Process_PtcG2C_IBShopIcon
	{
		public static void Process(PtcG2C_IBShopIcon roPtc)
		{
			XGameMallDocument specificDocument = XDocuments.GetSpecificDocument<XGameMallDocument>(XGameMallDocument.uuID);
			bool flag = specificDocument != null;
			if (flag)
			{
				specificDocument.isNewWeekly = roPtc.Data.limittag;
				specificDocument.hotGoods = roPtc.Data.viptag;
				bool bState = specificDocument.isNewWeekly || specificDocument.isNewVIP;
				XSingleton<XGameSysMgr>.singleton.SetSysRedPointState(XSysDefine.XSys_GameMall, bState);
				XSingleton<XGameSysMgr>.singleton.RecalculateRedPointState(XSysDefine.XSys_GameMall, true);
			}
		}
	}
}