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
|
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>()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -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" />
|
||||||
|
|
Loading…
Reference in New Issue