Files
SabreTools/SabreTools.DatItems/Formats/Sample.cs

30 lines
738 B
C#
Raw Normal View History

using System.Xml.Serialization;
2020-09-02 12:19:12 -07:00
using Newtonsoft.Json;
2020-08-23 22:23:55 -07:00
2021-02-02 10:23:43 -08:00
namespace SabreTools.DatItems.Formats
{
2019-01-08 17:40:12 -08:00
/// <summary>
/// Represents a (usually WAV-formatted) sample to be included for use in the set
/// </summary>
2020-09-08 10:12:41 -07:00
[JsonObject("sample"), XmlRoot("sample")]
2024-03-10 20:39:54 -04:00
public class Sample : DatItem<Models.Metadata.Sample>
2019-01-08 17:40:12 -08:00
{
2024-03-10 20:39:54 -04:00
#region Fields
2020-09-02 12:19:12 -07:00
2024-03-10 20:39:54 -04:00
/// <inheritdoc>/>
protected override ItemType ItemType => ItemType.Sample;
2020-09-02 12:19:12 -07:00
2024-03-10 20:39:54 -04:00
/// <inheritdoc>/>
protected override string? NameKey => Models.Metadata.Sample.NameKey;
2020-09-02 12:19:12 -07:00
#endregion
2019-01-08 17:40:12 -08:00
#region Constructors
2024-03-10 20:39:54 -04:00
public Sample() : base() { }
public Sample(Models.Metadata.Sample item) : base(item) { }
2019-01-08 17:40:12 -08:00
#endregion
}
}