organise a few framework classes
This commit is contained in:
parent
dc4ad15afe
commit
bb165f2079
|
@ -1,7 +1,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Mono.Cecil;
|
using Mono.Cecil;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework
|
namespace StardewModdingAPI.Framework.ModLoading
|
||||||
{
|
{
|
||||||
/// <summary>A minimal assembly definition resolver which resolves references to known assemblies.</summary>
|
/// <summary>A minimal assembly definition resolver which resolves references to known assemblies.</summary>
|
||||||
internal class AssemblyDefinitionResolver : DefaultAssemblyResolver
|
internal class AssemblyDefinitionResolver : DefaultAssemblyResolver
|
|
@ -7,7 +7,7 @@ using Mono.Cecil;
|
||||||
using Mono.Cecil.Cil;
|
using Mono.Cecil.Cil;
|
||||||
using StardewModdingAPI.AssemblyRewriters;
|
using StardewModdingAPI.AssemblyRewriters;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework
|
namespace StardewModdingAPI.Framework.ModLoading
|
||||||
{
|
{
|
||||||
/// <summary>Preprocesses and loads mod assemblies.</summary>
|
/// <summary>Preprocesses and loads mod assemblies.</summary>
|
||||||
internal class AssemblyLoader
|
internal class AssemblyLoader
|
|
@ -1,7 +1,7 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Mono.Cecil;
|
using Mono.Cecil;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework
|
namespace StardewModdingAPI.Framework.ModLoading
|
||||||
{
|
{
|
||||||
/// <summary>Metadata about a parsed assembly definition.</summary>
|
/// <summary>Metadata about a parsed assembly definition.</summary>
|
||||||
internal class AssemblyParseResult
|
internal class AssemblyParseResult
|
|
@ -1,6 +1,6 @@
|
||||||
using StardewModdingAPI.Framework.Models;
|
using StardewModdingAPI.Framework.Models;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework
|
namespace StardewModdingAPI.Framework.ModLoading
|
||||||
{
|
{
|
||||||
/// <summary>Metadata for a mod.</summary>
|
/// <summary>Metadata for a mod.</summary>
|
||||||
internal class ModMetadata
|
internal class ModMetadata
|
|
@ -1,10 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
|
||||||
using StardewModdingAPI.Framework.Serialisation;
|
using StardewModdingAPI.Framework.Serialisation;
|
||||||
|
|
||||||
namespace StardewModdingAPI.Framework
|
namespace StardewModdingAPI.Framework.Models
|
||||||
{
|
{
|
||||||
/// <summary>A manifest which describes a mod for SMAPI.</summary>
|
/// <summary>A manifest which describes a mod for SMAPI.</summary>
|
||||||
internal class Manifest : IManifest
|
internal class Manifest : IManifest
|
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using StardewModdingAPI.Framework;
|
using StardewModdingAPI.Framework;
|
||||||
|
using StardewModdingAPI.Framework.Models;
|
||||||
|
|
||||||
namespace StardewModdingAPI
|
namespace StardewModdingAPI
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,7 @@ using StardewModdingAPI.Events;
|
||||||
using StardewModdingAPI.Framework;
|
using StardewModdingAPI.Framework;
|
||||||
using StardewModdingAPI.Framework.Logging;
|
using StardewModdingAPI.Framework.Logging;
|
||||||
using StardewModdingAPI.Framework.Models;
|
using StardewModdingAPI.Framework.Models;
|
||||||
|
using StardewModdingAPI.Framework.ModLoading;
|
||||||
using StardewModdingAPI.Framework.Reflection;
|
using StardewModdingAPI.Framework.Reflection;
|
||||||
using StardewModdingAPI.Framework.Serialisation;
|
using StardewModdingAPI.Framework.Serialisation;
|
||||||
using StardewValley;
|
using StardewValley;
|
||||||
|
|
|
@ -144,8 +144,8 @@
|
||||||
<Compile Include="Events\EventArgsStringChanged.cs" />
|
<Compile Include="Events\EventArgsStringChanged.cs" />
|
||||||
<Compile Include="Events\GameEvents.cs" />
|
<Compile Include="Events\GameEvents.cs" />
|
||||||
<Compile Include="Events\GraphicsEvents.cs" />
|
<Compile Include="Events\GraphicsEvents.cs" />
|
||||||
<Compile Include="Framework\AssemblyDefinitionResolver.cs" />
|
<Compile Include="Framework\ModLoading\AssemblyDefinitionResolver.cs" />
|
||||||
<Compile Include="Framework\AssemblyParseResult.cs" />
|
<Compile Include="Framework\ModLoading\AssemblyParseResult.cs" />
|
||||||
<Compile Include="Framework\CommandManager.cs" />
|
<Compile Include="Framework\CommandManager.cs" />
|
||||||
<Compile Include="Framework\ContentHelper.cs" />
|
<Compile Include="Framework\ContentHelper.cs" />
|
||||||
<Compile Include="Framework\Content\ContentEventData.cs" />
|
<Compile Include="Framework\Content\ContentEventData.cs" />
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
<Compile Include="Framework\CommandHelper.cs" />
|
<Compile Include="Framework\CommandHelper.cs" />
|
||||||
<Compile Include="Framework\Models\ModCompatibilityType.cs" />
|
<Compile Include="Framework\Models\ModCompatibilityType.cs" />
|
||||||
<Compile Include="Framework\Models\SConfig.cs" />
|
<Compile Include="Framework\Models\SConfig.cs" />
|
||||||
<Compile Include="Framework\ModMetadata.cs" />
|
<Compile Include="Framework\ModLoading\ModMetadata.cs" />
|
||||||
<Compile Include="Framework\Reflection\PrivateProperty.cs" />
|
<Compile Include="Framework\Reflection\PrivateProperty.cs" />
|
||||||
<Compile Include="Framework\RequestExitDelegate.cs" />
|
<Compile Include="Framework\RequestExitDelegate.cs" />
|
||||||
<Compile Include="Framework\SContentManager.cs" />
|
<Compile Include="Framework\SContentManager.cs" />
|
||||||
|
@ -182,7 +182,7 @@
|
||||||
<Compile Include="Framework\DeprecationManager.cs" />
|
<Compile Include="Framework\DeprecationManager.cs" />
|
||||||
<Compile Include="Framework\InternalExtensions.cs" />
|
<Compile Include="Framework\InternalExtensions.cs" />
|
||||||
<Compile Include="Framework\Models\ModCompatibility.cs" />
|
<Compile Include="Framework\Models\ModCompatibility.cs" />
|
||||||
<Compile Include="Framework\AssemblyLoader.cs" />
|
<Compile Include="Framework\ModLoading\AssemblyLoader.cs" />
|
||||||
<Compile Include="Framework\Reflection\CacheEntry.cs" />
|
<Compile Include="Framework\Reflection\CacheEntry.cs" />
|
||||||
<Compile Include="Framework\Reflection\PrivateField.cs" />
|
<Compile Include="Framework\Reflection\PrivateField.cs" />
|
||||||
<Compile Include="Framework\Reflection\PrivateMethod.cs" />
|
<Compile Include="Framework\Reflection\PrivateMethod.cs" />
|
||||||
|
@ -202,7 +202,7 @@
|
||||||
<Compile Include="Events\ItemStackChange.cs" />
|
<Compile Include="Events\ItemStackChange.cs" />
|
||||||
<Compile Include="Log.cs" />
|
<Compile Include="Log.cs" />
|
||||||
<Compile Include="Framework\Monitor.cs" />
|
<Compile Include="Framework\Monitor.cs" />
|
||||||
<Compile Include="Framework\Manifest.cs" />
|
<Compile Include="Framework\Models\Manifest.cs" />
|
||||||
<Compile Include="Mod.cs" />
|
<Compile Include="Mod.cs" />
|
||||||
<Compile Include="Framework\ModHelper.cs" />
|
<Compile Include="Framework\ModHelper.cs" />
|
||||||
<Compile Include="PatchMode.cs" />
|
<Compile Include="PatchMode.cs" />
|
||||||
|
|
Loading…
Reference in New Issue