blob: f01aab4b7d6b18eda8a7cf82edbc06c5b459cf55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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)
{
}
}
}
|