simplify JSON converter name

This commit is contained in:
Jesse Plamondon-Willard 2017-10-18 16:58:42 -04:00
parent 51a2c3991f
commit a4fb2331fe
3 changed files with 5 additions and 5 deletions

View File

@ -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 ObjectCreationHandling = ObjectCreationHandling.Replace, // avoid issue where default ICollection<T> values are duplicated each time the config is loaded
Converters = new List<JsonConverter> Converters = new List<JsonConverter>
{ {
new SelectiveStringEnumConverter<Buttons>(), new StringEnumConverter<Buttons>(),
new SelectiveStringEnumConverter<Keys>(), new StringEnumConverter<Keys>(),
new SelectiveStringEnumConverter<SButton>() new StringEnumConverter<SButton>()
} }
}; };

View File

@ -5,7 +5,7 @@ namespace StardewModdingAPI.Framework.Serialisation
{ {
/// <summary>A variant of <see cref="StringEnumConverter"/> which only converts a specified enum.</summary> /// <summary>A variant of <see cref="StringEnumConverter"/> which only converts a specified enum.</summary>
/// <typeparam name="T">The enum type.</typeparam> /// <typeparam name="T">The enum type.</typeparam>
internal class SelectiveStringEnumConverter<T> : StringEnumConverter internal class StringEnumConverter<T> : StringEnumConverter
{ {
/********* /*********
** Public methods ** Public methods

View File

@ -173,7 +173,7 @@
<Compile Include="Framework\SContentManager.cs" /> <Compile Include="Framework\SContentManager.cs" />
<Compile Include="Framework\Exceptions\SParseException.cs" /> <Compile Include="Framework\Exceptions\SParseException.cs" />
<Compile Include="Framework\Serialisation\JsonHelper.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="Framework\Serialisation\SFieldConverter.cs" />
<Compile Include="IAssetEditor.cs" /> <Compile Include="IAssetEditor.cs" />
<Compile Include="IAssetInfo.cs" /> <Compile Include="IAssetInfo.cs" />