-
Notifications
You must be signed in to change notification settings - Fork 1
/
ZoneMusic.cs
29 lines (22 loc) · 927 Bytes
/
ZoneMusic.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
using TrinityCore.Dbc.Net.Lib.Attributes;
namespace TrinityCore.Dbc.Net.Lib.Definitions
{
[DbcFile("ZoneMusic.dbc")]
public class ZoneMusic : DbcFile
{
[DbcColumn(0, Enums.DbcColumnDataType.Int32)]
public int Id { get; set; }
[DbcColumn(1, Enums.DbcColumnDataType.StringRef)]
public string? SetName { get; set; }
[DbcColumn(2, Enums.DbcColumnDataType.ArrayOfUint32, 2)]
public int[]? SilenceIntervalMin { get; set; }
[DbcColumn(3, Enums.DbcColumnDataType.ArrayOfUint32, 2)]
public int[]? SilenceIntervalMax { get; set; }
[DbcColumn(4, Enums.DbcColumnDataType.ArrayOfUint32, 2)]
public int[]? Sounds { get; set; }
public SoundEntries[]? GetSoundsSoundEntriess()
{
return DbcDirectory.Open<SoundEntries>()?.Where(c => this.Sounds != null && this.Sounds.Contains(c.Id)).ToArray();
}
}
}