mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using System.Xml.Serialization;
|
|
using Newtonsoft.Json;
|
|
using SabreTools.Core.Tools;
|
|
|
|
namespace SabreTools.DatItems.Formats
|
|
{
|
|
/// <summary>
|
|
/// Represents which BIOS(es) is associated with a set
|
|
/// </summary>
|
|
[JsonObject("biosset"), XmlRoot("biosset")]
|
|
public sealed class BiosSet : DatItem<Models.Metadata.BiosSet>
|
|
{
|
|
#region Fields
|
|
|
|
/// <inheritdoc>/>
|
|
protected override ItemType ItemType => ItemType.BiosSet;
|
|
|
|
/// <inheritdoc>/>
|
|
protected override string? NameKey => Models.Metadata.BiosSet.NameKey;
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public BiosSet() : base() { }
|
|
public BiosSet(Models.Metadata.BiosSet item) : base(item)
|
|
{
|
|
// Process flag values
|
|
if (GetBoolFieldValue(Models.Metadata.BiosSet.DefaultKey) != null)
|
|
SetFieldValue<string?>(Models.Metadata.BiosSet.DefaultKey, GetBoolFieldValue(Models.Metadata.BiosSet.DefaultKey).FromYesNo());
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|