move converters into namespace
This commit is contained in:
parent
9636d5b3aa
commit
894fd25a18
|
@ -1,6 +1,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using StardewModdingAPI.Framework.Serialisation;
|
using StardewModdingAPI.Framework.Serialisation;
|
||||||
|
using StardewModdingAPI.Framework.Serialisation.Converters;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework.Models
|
namespace StardewModdingAPI.Framework.Models
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using StardewModdingAPI.Framework.Serialisation;
|
using StardewModdingAPI.Framework.Serialisation;
|
||||||
|
using StardewModdingAPI.Framework.Serialisation.Converters;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework.Models
|
namespace StardewModdingAPI.Framework.Models
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@ using Microsoft.Xna.Framework;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using StardewModdingAPI.Framework.Exceptions;
|
using StardewModdingAPI.Framework.Exceptions;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework.Serialisation
|
namespace StardewModdingAPI.Framework.Serialisation.Converters
|
||||||
{
|
{
|
||||||
/// <summary>Handles deserialisation of <see cref="Color"/> for crossplatform compatibility.</summary>
|
/// <summary>Handles deserialisation of <see cref="Color"/> for crossplatform compatibility.</summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
|
@ -3,7 +3,7 @@ using Microsoft.Xna.Framework;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using StardewModdingAPI.Framework.Exceptions;
|
using StardewModdingAPI.Framework.Exceptions;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework.Serialisation
|
namespace StardewModdingAPI.Framework.Serialisation.Converters
|
||||||
{
|
{
|
||||||
/// <summary>Handles deserialisation of <see cref="PointConverter"/> for crossplatform compatibility.</summary>
|
/// <summary>Handles deserialisation of <see cref="PointConverter"/> for crossplatform compatibility.</summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
|
@ -4,7 +4,7 @@ using Microsoft.Xna.Framework;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using StardewModdingAPI.Framework.Exceptions;
|
using StardewModdingAPI.Framework.Exceptions;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework.Serialisation
|
namespace StardewModdingAPI.Framework.Serialisation.Converters
|
||||||
{
|
{
|
||||||
/// <summary>Handles deserialisation of <see cref="Rectangle"/> for crossplatform compatibility.</summary>
|
/// <summary>Handles deserialisation of <see cref="Rectangle"/> for crossplatform compatibility.</summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
|
@ -5,7 +5,7 @@ using Newtonsoft.Json.Linq;
|
||||||
using StardewModdingAPI.Framework.Exceptions;
|
using StardewModdingAPI.Framework.Exceptions;
|
||||||
using StardewModdingAPI.Framework.Models;
|
using StardewModdingAPI.Framework.Models;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework.Serialisation
|
namespace StardewModdingAPI.Framework.Serialisation.Converters
|
||||||
{
|
{
|
||||||
/// <summary>Overrides how SMAPI reads and writes <see cref="ISemanticVersion"/> and <see cref="IManifestDependency"/> fields.</summary>
|
/// <summary>Overrides how SMAPI reads and writes <see cref="ISemanticVersion"/> and <see cref="IManifestDependency"/> fields.</summary>
|
||||||
internal class SFieldConverter : JsonConverter
|
internal class SFieldConverter : JsonConverter
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework.Serialisation
|
namespace StardewModdingAPI.Framework.Serialisation.Converters
|
||||||
{
|
{
|
||||||
/// <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>
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.Xna.Framework.Input;
|
using Microsoft.Xna.Framework.Input;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using StardewModdingAPI.Framework.Serialisation.Converters;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework.Serialisation
|
namespace StardewModdingAPI.Framework.Serialisation
|
||||||
{
|
{
|
||||||
|
|
|
@ -111,9 +111,9 @@
|
||||||
<Compile Include="Framework\ModLoading\AssemblyLoadStatus.cs" />
|
<Compile Include="Framework\ModLoading\AssemblyLoadStatus.cs" />
|
||||||
<Compile Include="Framework\Reflection\InterfaceProxyBuilder.cs" />
|
<Compile Include="Framework\Reflection\InterfaceProxyBuilder.cs" />
|
||||||
<Compile Include="Framework\Serialisation\SimpleReadOnlyConverter.cs" />
|
<Compile Include="Framework\Serialisation\SimpleReadOnlyConverter.cs" />
|
||||||
<Compile Include="Framework\Serialisation\RectangleConverter.cs" />
|
<Compile Include="Framework\Serialisation\Converters\RectangleConverter.cs" />
|
||||||
<Compile Include="Framework\Serialisation\ColorConverter.cs" />
|
<Compile Include="Framework\Serialisation\Converters\ColorConverter.cs" />
|
||||||
<Compile Include="Framework\Serialisation\PointConverter.cs" />
|
<Compile Include="Framework\Serialisation\Converters\PointConverter.cs" />
|
||||||
<Compile Include="Framework\Utilities\ContextHash.cs" />
|
<Compile Include="Framework\Utilities\ContextHash.cs" />
|
||||||
<Compile Include="IReflectedField.cs" />
|
<Compile Include="IReflectedField.cs" />
|
||||||
<Compile Include="IReflectedMethod.cs" />
|
<Compile Include="IReflectedMethod.cs" />
|
||||||
|
@ -181,8 +181,8 @@
|
||||||
<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\StringEnumConverter.cs" />
|
<Compile Include="Framework\Serialisation\Converters\StringEnumConverter.cs" />
|
||||||
<Compile Include="Framework\Serialisation\SFieldConverter.cs" />
|
<Compile Include="Framework\Serialisation\Converters\SFieldConverter.cs" />
|
||||||
<Compile Include="IAssetEditor.cs" />
|
<Compile Include="IAssetEditor.cs" />
|
||||||
<Compile Include="IAssetInfo.cs" />
|
<Compile Include="IAssetInfo.cs" />
|
||||||
<Compile Include="IAssetLoader.cs" />
|
<Compile Include="IAssetLoader.cs" />
|
||||||
|
|
Loading…
Reference in New Issue