mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +00:00
42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using System.Xml.Serialization;
|
|
using Newtonsoft.Json;
|
|
using SabreTools.Data.Extensions;
|
|
|
|
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)
|
|
{
|
|
Write<Source?>(SourceKey, source);
|
|
CopyMachineInformation(machine);
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Cloning Methods
|
|
|
|
/// <inheritdoc/>
|
|
public override object Clone() => new Info(_internal.Clone() as Data.Models.Metadata.Info ?? []);
|
|
|
|
#endregion
|
|
}
|
|
}
|