From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/EnhanceAttr.cs | 59 ++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/EnhanceAttr.cs (limited to 'Client/Assets/Scripts/XMainClient/EnhanceAttr.cs') 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; + } + } +} -- cgit v1.1-26-g67d0