diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-02-18 02:31:39 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-02-18 02:31:39 -0500 |
commit | f1c24e30522499199cbf2f75cb68d7b4e5942bf3 (patch) | |
tree | 53985d7cfb785a2573a34731165e1007de7a9097 /src/SMAPI/Framework/Serialisation/JsonHelper.cs | |
parent | 4444b590f016ebecfc113a0dd4584723b0250f41 (diff) | |
download | SMAPI-f1c24e30522499199cbf2f75cb68d7b4e5942bf3.tar.gz SMAPI-f1c24e30522499199cbf2f75cb68d7b4e5942bf3.tar.bz2 SMAPI-f1c24e30522499199cbf2f75cb68d7b4e5942bf3.zip |
add support for ISemanticVersion in JSON models
Diffstat (limited to 'src/SMAPI/Framework/Serialisation/JsonHelper.cs')
-rw-r--r-- | src/SMAPI/Framework/Serialisation/JsonHelper.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Serialisation/JsonHelper.cs b/src/SMAPI/Framework/Serialisation/JsonHelper.cs index 2e2a666e..6cba343e 100644 --- a/src/SMAPI/Framework/Serialisation/JsonHelper.cs +++ b/src/SMAPI/Framework/Serialisation/JsonHelper.cs @@ -21,6 +21,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> { + // SMAPI types + new SemanticVersionConverter(), + // enums new StringEnumConverter<Buttons>(), new StringEnumConverter<Keys>(), |