blob: 8a10db47da5bf154d90bc7339434a98c744c6c93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using StardewModdingAPI.Framework.Models;
namespace StardewModdingAPI.Framework.Serialisation.SmapiConverters
{
/// <summary>Handles deserialisation of <see cref="ModDataID"/>.</summary>
internal class ModDataIdConverter : SimpleReadOnlyConverter<ModDataID>
{
/*********
** Protected methods
*********/
/// <summary>Read a JSON string.</summary>
/// <param name="str">The JSON string value.</param>
/// <param name="path">The path to the current JSON node.</param>
protected override ModDataID ReadString(string str, string path)
{
return new ModDataID(str);
}
}
}
|