Files
SabreTools/SabreTools.DatItems/Formats/PartFeature.cs

39 lines
924 B
C#
Raw Normal View History

using System.Xml.Serialization;
2020-09-03 13:20:56 -07:00
using Newtonsoft.Json;
2021-02-02 10:23:43 -08:00
namespace SabreTools.DatItems.Formats
2020-09-03 13:20:56 -07:00
{
/// <summary>
/// Represents one part feature object
/// </summary>
2020-09-08 10:12:41 -07:00
[JsonObject("part_feature"), XmlRoot("part_feature")]
2024-03-10 20:39:54 -04:00
public sealed class PartFeature : DatItem<Models.Metadata.Feature>
2020-09-03 13:20:56 -07:00
{
#region Constants
/// <summary>
/// Non-standard key for inverted logic
/// </summary>
public const string PartKey = "PART";
#endregion
2024-03-10 20:39:54 -04:00
#region Fields
2020-09-03 13:20:56 -07:00
2024-03-10 20:39:54 -04:00
/// <inheritdoc>/>
protected override ItemType ItemType => ItemType.PartFeature;
2020-09-03 13:20:56 -07:00
2024-03-10 20:39:54 -04:00
/// <inheritdoc>/>
protected override string? NameKey => Models.Metadata.Feature.NameKey;
2020-09-03 13:20:56 -07:00
#endregion
#region Constructors
2024-03-10 20:39:54 -04:00
public PartFeature() : base() { }
public PartFeature(Models.Metadata.Feature item) : base(item) { }
2020-09-03 13:20:56 -07:00
#endregion
}
}