forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWeaponType.cs
More file actions
63 lines (56 loc) · 2.4 KB
/
Copy pathWeaponType.cs
File metadata and controls
63 lines (56 loc) · 2.4 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System.Collections.Generic;
namespace L2dotNET.Enums
{
public class WeaponType : ItemType
{
public WeaponTypeId Id { get; set; }
private readonly string _name;
public static readonly WeaponType None = new WeaponType(WeaponTypeId.None, "None");
public static readonly WeaponType Sword = new WeaponType(WeaponTypeId.Sword, "Sword");
public static readonly WeaponType Blunt = new WeaponType(WeaponTypeId.Blunt, "Blunt");
public static readonly WeaponType Dagger = new WeaponType(WeaponTypeId.Dagger, "Dagger");
public static readonly WeaponType Bow = new WeaponType(WeaponTypeId.Bow, "Bow");
public static readonly WeaponType Pole = new WeaponType(WeaponTypeId.Pole, "Pole");
public static readonly WeaponType Etc = new WeaponType(WeaponTypeId.Etc, "Etc");
public static readonly WeaponType Fist = new WeaponType(WeaponTypeId.Fist, "Fist");
public static readonly WeaponType Dual = new WeaponType(WeaponTypeId.Dual, "DualSword");
public static readonly WeaponType DualFist = new WeaponType(WeaponTypeId.Dualfist, "DualFist");
public static readonly WeaponType BigSword = new WeaponType(WeaponTypeId.Bigsword, "BigSword");
public static readonly WeaponType Pet = new WeaponType(WeaponTypeId.Pet, "Pet");
public static readonly WeaponType Rod = new WeaponType(WeaponTypeId.Fishingrod, "Rod");
public static readonly WeaponType BigBlunt = new WeaponType(WeaponTypeId.Bigblunt, "BigBlunt");
private WeaponType(WeaponTypeId id, string name)
{
Id = id;
_name = name;
}
public static IEnumerable<WeaponType> Values
{
get
{
yield return None;
yield return Sword;
yield return Blunt;
yield return Dagger;
yield return Bow;
yield return Pole;
yield return Etc;
yield return Fist;
yield return Dual;
yield return DualFist;
yield return BigSword;
yield return Pet;
yield return Rod;
yield return BigBlunt;
}
}
public override string ToString()
{
return _name;
}
public int GetMask()
{
return 1 << (int)Id;
}
}
}