From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/Equip/EquipAttrRange.cs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs (limited to 'Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs') diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs new file mode 100644 index 00000000..958d3800 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs @@ -0,0 +1,52 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipAttrRange + { + public float Min + { + get + { + return this.m_min; + } + } + + public float Max + { + get + { + return this.m_max; + } + } + + public float D_value + { + get + { + return this.m_max - this.m_min; + } + } + + public uint Prob + { + get + { + return this.m_prob; + } + } + + private float m_min = 0f; + + private float m_max = 0f; + + private uint m_prob = 0u; + + public EquipAttrRange(SeqRef seq) + { + this.m_min = seq[0]; + this.m_max = seq[1]; + } + } +} -- cgit v1.1-26-g67d0