diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/EnhanceAttr.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/EnhanceAttr.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/EnhanceAttr.cs | 59 |
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;
+ }
+ }
+}
|