summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-10-18 16:58:42 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-10-18 16:58:42 -0400
commita4fb2331fe57102aa8e8b30efb8095a1edb6b923 (patch)
tree67aa7021752bdffd92fa405c8b1717d0a6a0d544
parent51a2c3991f3c76197afb21a42a30f2a91a7f9908 (diff)
downloadSMAPI-a4fb2331fe57102aa8e8b30efb8095a1edb6b923.tar.gz
SMAPI-a4fb2331fe57102aa8e8b30efb8095a1edb6b923.tar.bz2
SMAPI-a4fb2331fe57102aa8e8b30efb8095a1edb6b923.zip
simplify JSON converter name
-rw-r--r--src/SMAPI/Framework/Serialisation/JsonHelper.cs6
-rw-r--r--src/SMAPI/Framework/Serialisation/StringEnumConverter.cs (renamed from src/SMAPI/Framework/Serialisation/SelectiveStringEnumConverter.cs)2
-rw-r--r--src/SMAPI/StardewModdingAPI.csproj2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/SMAPI/Framework/Serialisation/JsonHelper.cs b/src/SMAPI/Framework/Serialisation/JsonHelper.cs
index 77b93b66..d923ec0c 100644
--- a/src/SMAPI/Framework/Serialisation/JsonHelper.cs
+++ b/src/SMAPI/Framework/Serialisation/JsonHelper.cs
@@ -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>()
}
};
diff --git a/src/SMAPI/Framework/Serialisation/SelectiveStringEnumConverter.cs b/src/SMAPI/Framework/Serialisation/StringEnumConverter.cs
index e825c880..7afe86cd 100644
--- a/src/SMAPI/Framework/Serialisation/SelectiveStringEnumConverter.cs
+++ b/src/SMAPI/Framework/Serialisation/StringEnumConverter.cs
@@ -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
diff --git a/src/SMAPI/StardewModdingAPI.csproj b/src/SMAPI/StardewModdingAPI.csproj
index b8d5990e..6f7c2b3f 100644
--- a/src/SMAPI/StardewModdingAPI.csproj
+++ b/src/SMAPI/StardewModdingAPI.csproj
@@ -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" />