summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XUtliPoolLib/XRedpointDirtyMgr.cs
blob: 3cf79c6b98ee997c7715b79ef08fbafea374593a (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
using System;
using System.Collections.Generic;

namespace XUtliPoolLib
{
	public abstract class XRedpointDirtyMgr
	{
		protected HashSet<int> mDirtySysList = new HashSet<int>();

		protected Dictionary<int, bool> mSysRedpointStateDic = new Dictionary<int, bool>();

		public abstract void RecalculateRedPointSelfState(int sys, bool bImmUpdateUI = true);

		public abstract void RefreshAllSysRedpoints();

		protected abstract void _RefreshSysRedpointUI(int sys, bool redpoint);

		protected bool _GetSysRedpointState(int sys)
		{
			bool result = false;
			this.mSysRedpointStateDic.TryGetValue(sys, out result);
			return result;
		}
	}
}