mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +00:00
34 lines
830 B
C#
34 lines
830 B
C#
using System.Xml.Serialization;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SabreTools.Metadata.DatItems.Formats
|
|
{
|
|
/// <summary>
|
|
/// Represents special information about a machine
|
|
/// </summary>
|
|
[JsonObject("info"), XmlRoot("info")]
|
|
public sealed class Info : DatItem<Data.Models.Metadata.Info>
|
|
{
|
|
#region Fields
|
|
|
|
/// <inheritdoc>/>
|
|
protected override ItemType ItemType => ItemType.Info;
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public Info() : base() { }
|
|
|
|
public Info(Data.Models.Metadata.Info item) : base(item) { }
|
|
|
|
public Info(Data.Models.Metadata.Info item, Machine machine, Source source) : this(item)
|
|
{
|
|
SetFieldValue<Source?>(SourceKey, source);
|
|
CopyMachineInformation(machine);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|