-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCraftingStage.cs
60 lines (53 loc) · 2.12 KB
/
CraftingStage.cs
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
56
57
58
59
60
using LavishScriptAPI;
namespace Vanguard.ISXVG
{
/// <summary>
/// This DataType includes all of the data available to ISXVG that is related to a 'stage' in the crafting process.
/// </summary>
public class CraftingStage : LavishScriptObject
{
/// <summary>
/// Initializes a new instance of the <see cref="CraftingStage"/> class.
/// </summary>
/// <param name="Obj">The obj.</param>
public CraftingStage(LavishScriptObject Obj) : base(Obj) {}
/// <summary>
/// Initializes a new instance of the <see cref="CraftingStage"/> class.
/// </summary>
public CraftingStage()
: base(LavishScript.Objects.GetObject("CraftingStep")) {}
/// <summary>
/// Gets the name of this <see cref="CraftingStage"/>.
/// </summary>
/// <value>The name.</value>
public string Name { get { return GetMember<string>("Name"); } }
/// <summary>
/// Gets the index of this <see cref="CraftingStage"/>.
/// </summary>
/// <value>The index.</value>
public int Index { get { return GetMember<int>("Index"); } }
/// <summary>
/// Gets the step count of this <see cref="CraftingStage"/>.
/// </summary>
/// <value>The step count.</value>
public int StepCount { get { return GetMember<int>("StepCount"); } }
/// <summary>
/// Gets a <see cref="CraftingStep"/> at the specified index.
/// </summary>
/// <param name="index">1-<see cref="StepCount"/>. The number of steps available in this stage.</param>
/// <returns></returns>
public CraftingStep Step(int index)
{
return Step(index.ToString());
}
/// <summary>
/// Gets a <see cref="CraftingStep"/> with the specified name.
/// </summary>
/// <param name="arg">The name of the step.</param>
/// <returns></returns>
public CraftingStep Step(string arg)
{
return new CraftingStep(GetMember("Step", arg));
}
}
}