diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs b/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs new file mode 100644 index 00000000..f01aab4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs @@ -0,0 +1,55 @@ +using System;
+using System.Collections.Generic;
+
+namespace XMainClient
+{
+ internal struct XSmeltingInfo
+ {
+ public static readonly int MAX_SLOT_COUNT = 6;
+
+ public List<XItemChangeAttr> Attrs;
+
+ public bool bHasSmelting;
+
+ public bool bCanBeSmelted;
+
+ public uint minQuality;
+
+ public int SlotCapacity;
+
+ public void Init()
+ {
+ bool flag = this.Attrs == null;
+ if (flag)
+ {
+ this.Attrs = new List<XItemChangeAttr>();
+ }
+ else
+ {
+ this.Attrs.Clear();
+ }
+ this.minQuality = uint.MaxValue;
+ this.bHasSmelting = false;
+ this.SlotCapacity = XSmeltingInfo.MAX_SLOT_COUNT;
+ this.bCanBeSmelted = true;
+ }
+
+ public void Clone(ref XSmeltingInfo other)
+ {
+ this.Init();
+ this.bHasSmelting = other.bHasSmelting;
+ bool flag = other.Attrs != null;
+ if (flag)
+ {
+ for (int i = 0; i < other.Attrs.Count; i++)
+ {
+ this.Attrs.Add(other.Attrs[i]);
+ }
+ }
+ }
+
+ public void SetSlotInfo(int itemid)
+ {
+ }
+ }
+}
|