summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XAttrItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XAttrItem.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XAttrItem.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XAttrItem.cs b/Client/Assets/Scripts/XMainClient/XAttrItem.cs
new file mode 100644
index 00000000..581b47e8
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XAttrItem.cs
@@ -0,0 +1,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;
+ }
+ }
+}