-
Notifications
You must be signed in to change notification settings - Fork 1
/
SkillLineAbility.cs
63 lines (46 loc) · 2 KB
/
SkillLineAbility.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
using TrinityCore.Dbc.Net.Lib.Attributes;
namespace TrinityCore.Dbc.Net.Lib.Definitions
{
[DbcFile("SkillLineAbility.dbc")]
public class SkillLineAbility : DbcFile
{
[DbcColumn(0, Enums.DbcColumnDataType.Int32)]
public int Id { get; set; }
[DbcColumn(1, Enums.DbcColumnDataType.Int32)]
public int SkillLine { get; set; }
[DbcColumn(2, Enums.DbcColumnDataType.Int32)]
public int Spell { get; set; }
[DbcColumn(3, Enums.DbcColumnDataType.Int32)]
public int RaceMask { get; set; }
[DbcColumn(4, Enums.DbcColumnDataType.Int32)]
public int ClassMask { get; set; }
[DbcColumn(5, Enums.DbcColumnDataType.Int32)]
public int ExcludeRace { get; set; }
[DbcColumn(6, Enums.DbcColumnDataType.Int32)]
public int ExcludeClass { get; set; }
[DbcColumn(7, Enums.DbcColumnDataType.Int32)]
public int MinSkillLineRank { get; set; }
[DbcColumn(8, Enums.DbcColumnDataType.Int32)]
public int SupercededBySpell { get; set; }
[DbcColumn(9, Enums.DbcColumnDataType.Int32)]
public int AcquireMethod { get; set; }
[DbcColumn(10, Enums.DbcColumnDataType.Int32)]
public int TrivialSkillLineRankHigh { get; set; }
[DbcColumn(11, Enums.DbcColumnDataType.Int32)]
public int TrivialSkillLineRankLow { get; set; }
[DbcColumn(12, Enums.DbcColumnDataType.ArrayOfUint32, 2)]
public int[]? CharacterPoints { get; set; }
public SkillLine? GetSkillLineSkillLine()
{
return DbcDirectory.Open<SkillLine>()?.Where(c => c.Id == this.SkillLine).FirstOrDefault();
}
public Spell? GetSpellSpell()
{
return DbcDirectory.Open<Spell>()?.Where(c => c.Id == this.Spell).FirstOrDefault();
}
public Spell? GetSupercededBySpellSpell()
{
return DbcDirectory.Open<Spell>()?.Where(c => c.Id == this.SupercededBySpell).FirstOrDefault();
}
}
}