mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-17 11:43:02 +00:00
44 lines
1018 B
C#
44 lines
1018 B
C#
using System.Xml.Serialization;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SabreTools.Data.Models.Metadata
|
|
{
|
|
[JsonObject("dipswitch"), XmlRoot("dipswitch")]
|
|
public class DipSwitch : DatItem
|
|
{
|
|
#region Properties
|
|
|
|
/// <remarks>(yes|no) "no"</remarks>
|
|
public bool? Default { get; set; }
|
|
|
|
public string? Mask { get; set; }
|
|
|
|
public string? Name { get; set; }
|
|
|
|
public string? Tag { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Keys
|
|
|
|
/// <remarks>Condition</remarks>
|
|
[NoFilter]
|
|
public const string ConditionKey = "condition";
|
|
|
|
/// <remarks>DipLocation[]</remarks>
|
|
[NoFilter]
|
|
public const string DipLocationKey = "diplocation";
|
|
|
|
/// <remarks>DipValue[]</remarks>
|
|
[NoFilter]
|
|
public const string DipValueKey = "dipvalue";
|
|
|
|
/// <remarks>string[]</remarks>
|
|
public const string EntryKey = "entry";
|
|
|
|
#endregion
|
|
|
|
public DipSwitch() => ItemType = ItemType.DipSwitch;
|
|
}
|
|
}
|