mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
40 lines
942 B
C#
40 lines
942 B
C#
using System.Xml.Serialization;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SabreTools.DatItems.Formats
|
|
{
|
|
/// <summary>
|
|
/// Represents one ListXML input
|
|
/// </summary>
|
|
[JsonObject("input"), XmlRoot("input")]
|
|
public sealed class Input : DatItem<Models.Metadata.Input>
|
|
{
|
|
#region Fields
|
|
|
|
/// <inheritdoc>/>
|
|
protected override ItemType ItemType => ItemType.Input;
|
|
|
|
/// <inheritdoc>/>
|
|
protected override string? NameKey => null;
|
|
|
|
[JsonIgnore]
|
|
public bool ControlsSpecified
|
|
{
|
|
get
|
|
{
|
|
var controls = GetFieldValue<Control[]?>(Models.Metadata.Input.ControlKey);
|
|
return controls != null && controls.Length > 0;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public Input() : base() { }
|
|
public Input(Models.Metadata.Input item) : base(item) { }
|
|
|
|
#endregion
|
|
}
|
|
}
|