-
Notifications
You must be signed in to change notification settings - Fork 1
/
SoundEntries.cs
50 lines (36 loc) · 1.61 KB
/
SoundEntries.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
using TrinityCore.Dbc.Net.Lib.Attributes;
namespace TrinityCore.Dbc.Net.Lib.Definitions
{
[DbcFile("SoundEntries.dbc")]
public class SoundEntries : DbcFile
{
[DbcColumn(0, Enums.DbcColumnDataType.Int32)]
public int Id { get; set; }
[DbcColumn(1, Enums.DbcColumnDataType.Int32)]
public int SoundType { get; set; }
[DbcColumn(2, Enums.DbcColumnDataType.StringRef)]
public string? Name { get; set; }
[DbcColumn(3, Enums.DbcColumnDataType.ArrayOfStringRef, 10)]
public string[]? File { get; set; }
[DbcColumn(4, Enums.DbcColumnDataType.ArrayOfUint32, 10)]
public int[]? Freq { get; set; }
[DbcColumn(5, Enums.DbcColumnDataType.StringRef)]
public string? DirectoryBase { get; set; }
[DbcColumn(6, Enums.DbcColumnDataType.Float)]
public float VolumeFloat { get; set; }
[DbcColumn(7, Enums.DbcColumnDataType.Int32)]
public int Flags { get; set; }
[DbcColumn(8, Enums.DbcColumnDataType.Float)]
public float MinDistance { get; set; }
[DbcColumn(9, Enums.DbcColumnDataType.Float)]
public float DistanceCutoff { get; set; }
[DbcColumn(10, Enums.DbcColumnDataType.Int32)]
public int EAXDef { get; set; }
[DbcColumn(11, Enums.DbcColumnDataType.Int32)]
public int SoundEntriesAdvancedId { get; set; }
public SoundEntriesAdvanced? GetSoundEntriesAdvancedIdSoundEntriesAdvanced()
{
return DbcDirectory.Open<SoundEntriesAdvanced>()?.Where(c => c.Id == this.SoundEntriesAdvancedId).FirstOrDefault();
}
}
}