summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XAttrItem.cs
blob: 581b47e8be880397e7c90f7468eb3f498bf360f3 (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
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using XUtliPoolLib;

namespace XMainClient
{
	internal abstract class XAttrItem : XItem
	{
		public List<XItemChangeAttr> changeAttr = new List<XItemChangeAttr>();

		public IEnumerable<XItemChangeAttr> BasicAttr()
		{
			return this.changeAttr;
		}

		public override void Init()
		{
			base.Init();
			this.changeAttr.Clear();
		}

		public override uint GetPPT(XAttributes attributes = null)
		{
			double num = 0.0;
			for (int i = 0; i < this.changeAttr.Count; i++)
			{
				num += XSingleton<XPowerPointCalculator>.singleton.GetPPT(this.changeAttr[i], attributes, -1);
			}
			return (uint)num;
		}
	}
}