summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/EnhanceAttr.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/EnhanceAttr.cs59
1 files changed, 59 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs b/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs
new file mode 100644
index 00000000..19c47753
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs
@@ -0,0 +1,59 @@
+using System;
+
+namespace XMainClient
+{
+ internal class EnhanceAttr
+ {
+ public string Name
+ {
+ get
+ {
+ return this.m_name;
+ }
+ }
+
+ public uint BeforeAttrNum
+ {
+ get
+ {
+ return this.m_beforeAttrNum;
+ }
+ }
+
+ public uint AfterAttrNum
+ {
+ get
+ {
+ return this.m_afterAttrNum;
+ }
+ }
+
+ public int D_value
+ {
+ get
+ {
+ return (int)(this.m_afterAttrNum - this.m_beforeAttrNum);
+ }
+ }
+
+ private string m_name = "";
+
+ private uint m_beforeAttrNum = 0u;
+
+ private uint m_afterAttrNum = 0u;
+
+ public EnhanceAttr(uint attrID, uint attrValue, uint afterValue)
+ {
+ this.m_name = XStringDefineProxy.GetString((XAttributeDefine)attrID);
+ this.m_beforeAttrNum = attrValue;
+ this.m_afterAttrNum = afterValue;
+ }
+
+ public EnhanceAttr(string name, uint beforeValue, uint afterValue)
+ {
+ this.m_name = name;
+ this.m_beforeAttrNum = beforeValue;
+ this.m_afterAttrNum = afterValue;
+ }
+ }
+}