mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 23:05:12 +00:00
Libraries
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
This commit is contained in:
51
SabreTools.Data.Models/Metadata/Control.cs
Normal file
51
SabreTools.Data.Models/Metadata/Control.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SabreTools.Data.Models.Metadata
|
||||
{
|
||||
[JsonObject("control"), XmlRoot("control")]
|
||||
public class Control : DatItem
|
||||
{
|
||||
#region Keys
|
||||
|
||||
/// <remarks>long</remarks>
|
||||
public const string ButtonsKey = "buttons";
|
||||
|
||||
/// <remarks>long</remarks>
|
||||
public const string KeyDeltaKey = "keydelta";
|
||||
|
||||
/// <remarks>long</remarks>
|
||||
public const string MaximumKey = "maximum";
|
||||
|
||||
/// <remarks>long</remarks>
|
||||
public const string MinimumKey = "minimum";
|
||||
|
||||
/// <remarks>long</remarks>
|
||||
public const string PlayerKey = "player";
|
||||
|
||||
/// <remarks>long</remarks>
|
||||
public const string ReqButtonsKey = "reqbuttons";
|
||||
|
||||
/// <remarks>(yes|no) "no"</remarks>
|
||||
public const string ReverseKey = "reverse";
|
||||
|
||||
/// <remarks>long</remarks>
|
||||
public const string SensitivityKey = "sensitivity";
|
||||
|
||||
/// <remarks>(joy|stick|paddle|pedal|lightgun|positional|dial|trackball|mouse|only_buttons|keypad|keyboard|mahjong|hanafuda|gambling)</remarks>
|
||||
public const string ControlTypeKey = "type";
|
||||
|
||||
/// <remarks>string, possibly long</remarks>
|
||||
public const string WaysKey = "ways";
|
||||
|
||||
/// <remarks>string, possibly long</remarks>
|
||||
public const string Ways2Key = "ways2";
|
||||
|
||||
/// <remarks>string, possibly long</remarks>
|
||||
public const string Ways3Key = "ways3";
|
||||
|
||||
#endregion
|
||||
|
||||
public Control() => Type = ItemType.Control;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user