forked from Zutatensuppe/DiabloInterfaceAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItemRequest.cs
More file actions
49 lines (44 loc) · 1.27 KB
/
Copy pathItemRequest.cs
File metadata and controls
49 lines (44 loc) · 1.27 KB
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
using System;
namespace DiabloInterfaceAPI
{
public class ItemRequest
{
public enum Slot
{
Helm,
Armor,
Weapon,
Shield,
WeaponSwap,
ShieldSwap,
Gloves,
Boots,
Belt,
Rings,
Amulet
}
public string EquipmentSlot { get; private set; }
public ItemRequest(Slot itemSlot)
{
EquipmentSlot = ItemSlotToString(itemSlot);
}
public static string ItemSlotToString(Slot itemSlot)
{
switch (itemSlot)
{
case Slot.Helm: return "helm";
case Slot.Armor: return "armor";
case Slot.Weapon: return "weapon";
case Slot.Shield: return "shield";
case Slot.WeaponSwap: return "weapon2";
case Slot.ShieldSwap: return "shield2";
case Slot.Gloves: return "gloves";
case Slot.Boots: return "boots";
case Slot.Belt: return "belt";
case Slot.Rings: return "rings";
case Slot.Amulet: return "amulet";
default: throw new ArgumentException("itemSlot");
}
}
}
}