simplify JSON converter name
This commit is contained in:
parent
51a2c3991f
commit
a4fb2331fe
|
@ -19,9 +19,9 @@ namespace StardewModdingAPI.Framework.Serialisation
|
|||
ObjectCreationHandling = ObjectCreationHandling.Replace, // avoid issue where default ICollection<T> values are duplicated each time the config is loaded
|
||||
Converters = new List<JsonConverter>
|
||||
{
|
||||
new SelectiveStringEnumConverter<Buttons>(),
|
||||
new SelectiveStringEnumConverter<Keys>(),
|
||||
new SelectiveStringEnumConverter<SButton>()
|
||||
new StringEnumConverter<Buttons>(),
|
||||
new StringEnumConverter<Keys>(),
|
||||
new StringEnumConverter<SButton>()
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace StardewModdingAPI.Framework.Serialisation
|
|||
{
|
||||
/// <summary>A variant of <see cref="StringEnumConverter"/> which only converts a specified enum.</summary>
|
||||
/// <typeparam name="T">The enum type.</typeparam>
|
||||
internal class SelectiveStringEnumConverter<T> : StringEnumConverter
|
||||
internal class StringEnumConverter<T> : StringEnumConverter
|
||||
{
|
||||
/*********
|
||||
** Public methods
|
|
@ -173,7 +173,7 @@
|
|||
<Compile Include="Framework\SContentManager.cs" />
|
||||
<Compile Include="Framework\Exceptions\SParseException.cs" />
|
||||
<Compile Include="Framework\Serialisation\JsonHelper.cs" />
|
||||
<Compile Include="Framework\Serialisation\SelectiveStringEnumConverter.cs" />
|
||||
<Compile Include="Framework\Serialisation\StringEnumConverter.cs" />
|
||||
<Compile Include="Framework\Serialisation\SFieldConverter.cs" />
|
||||
<Compile Include="IAssetEditor.cs" />
|
||||
<Compile Include="IAssetInfo.cs" />
|
||||
|
|
Loading…
Reference in New Issue