-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoot.cs
88 lines (78 loc) · 2.61 KB
/
Loot.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using LavishScriptAPI;
namespace Vanguard.ISXVG
{
public class Loot : LavishScriptObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Loot"/> class.
/// </summary>
public Loot() : base(LavishScript.Objects.GetObject("Loot")) {}
/// <summary>
/// Initializes a new instance of the <see cref="Loot"/> class.
/// </summary>
/// <param name="Copy">The copy.</param>
public Loot(LavishScriptObject Copy) : base(Copy) {}
public bool IsLooting { get { return IsValid; } }
/// <summary>
/// Gets the number of items in the loot window.
/// </summary>
/// <value>The num items.</value>
public int NumItems { get { return GetMember<int>("NumItems"); } }
/// <summary>
/// Gets the looting from of this <see cref="Loot"/>.
/// </summary>
/// <value>The looting from.</value>
public Pawn LootingFrom
{
get
{
LavishScriptObject Obj = GetMember("LootingFrom");
return new Pawn(Obj);
}
}
/// <summary>
/// Gets an <see cref="Vanguard.ISXVG.Item"/> at the specified index.
/// </summary>
/// <param name="item">The index to get the item at. (1 - <see cref="NumItems"/>)</param>
/// <returns></returns>
public Item Item(int item)
{
LavishScriptObject Obj = GetMember("Item", item.ToString());
return new Item(Obj);
}
/// <summary>
/// Gets an <see cref="Vanguard.ISXVG.Item"/> with the specified index from the loot window.
/// </summary>
/// <param name="item">The item name to use.</param>
/// <returns></returns>
public Item Item(string item)
{
LavishScriptObject Obj = GetMember("Item", item);
return new Item(Obj);
}
/// <summary>
/// Loots all.
/// </summary>
/// <returns></returns>
public bool LootAll()
{
return ExecuteMethod("LootAll");
}
/// <summary>
/// Begins the looting.
/// </summary>
/// <returns></returns>
public bool BeginLooting()
{
return ExecuteMethod("BeginLooting");
}
/// <summary>
/// Ends the looting.
/// </summary>
/// <returns></returns>
public bool EndLooting()
{
return ExecuteMethod("EndLooting");
}
}
}