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/SmeltAttr.cs | 105 +++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/SmeltAttr.cs (limited to 'Client/Assets/Scripts/XMainClient/SmeltAttr.cs') diff --git a/Client/Assets/Scripts/XMainClient/SmeltAttr.cs b/Client/Assets/Scripts/XMainClient/SmeltAttr.cs new file mode 100644 index 00000000..eeaef81f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SmeltAttr.cs @@ -0,0 +1,105 @@ +using System; + +namespace XMainClient +{ + internal class SmeltAttr + { + public bool IsForge + { + get + { + return this.isForge; + } + } + + public uint Min + { + get + { + return this.min; + } + } + + public uint Max + { + get + { + return this.max; + } + } + + public uint AttrID + { + get + { + return this.attrID; + } + } + + public uint Index + { + get + { + return this.index; + } + } + + public uint Slot + { + get + { + return this.slot; + } + } + + public uint D_value + { + get + { + return this.max - this.min; + } + } + + public bool IsFull + { + get + { + return this.RealValue >= this.max; + } + } + + private bool isForge; + + private uint min; + + private uint max; + + private uint attrID; + + private uint index; + + private uint slot; + + public bool IsReplace; + + public uint RealValue; + + public string ColorStr; + + public int LastValue = -1; + + public uint SmeltResult = 0u; + + public bool IsCanSmelt = true; + + public SmeltAttr(uint id, uint min, uint max, uint index, uint slot, bool isForge) + { + this.attrID = id; + this.min = min; + this.max = max; + this.index = index; + this.slot = slot; + this.isForge = isForge; + } + } +} -- cgit v1.1-26-g67d0