diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-20 19:45:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-20 19:45:45 -0400 |
commit | 5be3e5af5a08f9e72a969191dca07597d9c7c1f7 (patch) | |
tree | edf6891e855670c8a7379d4ef635c4be58198f95 | |
parent | ae061165442ecb93e3a5a81bb918fd4c29e85e3a (diff) | |
download | SMAPI-5be3e5af5a08f9e72a969191dca07597d9c7c1f7.tar.gz SMAPI-5be3e5af5a08f9e72a969191dca07597d9c7c1f7.tar.bz2 SMAPI-5be3e5af5a08f9e72a969191dca07597d9c7c1f7.zip |
rename class to better match usage (#459)
-rw-r--r-- | src/SMAPI/Framework/ContentCore.cs | 4 | ||||
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs (renamed from src/SMAPI/Metadata/CoreAssets.cs) | 7 | ||||
-rw-r--r-- | src/SMAPI/StardewModdingAPI.csproj | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/src/SMAPI/Framework/ContentCore.cs b/src/SMAPI/Framework/ContentCore.cs index 85b8db8f..d5848d7b 100644 --- a/src/SMAPI/Framework/ContentCore.cs +++ b/src/SMAPI/Framework/ContentCore.cs @@ -51,7 +51,7 @@ namespace StardewModdingAPI.Framework private readonly IDictionary<string, LocalizedContentManager.LanguageCode> LanguageCodes; /// <summary>Provides metadata for core game assets.</summary> - private readonly CoreAssets CoreAssets; + private readonly CoreAssetPropagator CoreAssets; /// <summary>The assets currently being intercepted by <see cref="IAssetLoader"/> instances. This is used to prevent infinite loops when a loader loads a new asset.</summary> private readonly ContextHash<string> AssetsBeingLoaded = new ContextHash<string>(); @@ -103,7 +103,7 @@ namespace StardewModdingAPI.Framework this.ModContentPrefix = this.GetAssetNameFromFilePath(Constants.ModPath); // get asset data - this.CoreAssets = new CoreAssets(this.NormaliseAssetName, reflection); + this.CoreAssets = new CoreAssetPropagator(this.NormaliseAssetName, reflection); this.Locales = this.GetKeyLocales(reflection); this.LanguageCodes = this.Locales.ToDictionary(p => p.Value, p => p.Key, StringComparer.InvariantCultureIgnoreCase); } diff --git a/src/SMAPI/Metadata/CoreAssets.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 87629682..d6a731cd 100644 --- a/src/SMAPI/Metadata/CoreAssets.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -14,8 +14,9 @@ using StardewValley.TerrainFeatures; namespace StardewModdingAPI.Metadata { - /// <summary>Provides metadata about core assets in the game.</summary> - internal class CoreAssets + /// <summary>Handles updating the game when a mod changes core assets.</summary> + /// <remarks>This implementation only handles the core assets used by the game itself, and doesn't update any custom references to the changed textures.</remarks> + internal class CoreAssetPropagator { /********* ** Properties @@ -33,7 +34,7 @@ namespace StardewModdingAPI.Metadata /// <summary>Initialise the core asset data.</summary> /// <param name="getNormalisedPath">Normalises an asset key to match the cache key.</param> /// <param name="reflection">Simplifies access to private code.</param> - public CoreAssets(Func<string, string> getNormalisedPath, Reflector reflection) + public CoreAssetPropagator(Func<string, string> getNormalisedPath, Reflector reflection) { this.GetNormalisedPath = getNormalisedPath; this.SingletonSetters = diff --git a/src/SMAPI/StardewModdingAPI.csproj b/src/SMAPI/StardewModdingAPI.csproj index bffb96e2..82a5602d 100644 --- a/src/SMAPI/StardewModdingAPI.csproj +++ b/src/SMAPI/StardewModdingAPI.csproj @@ -137,7 +137,7 @@ <Compile Include="IReflectedField.cs" /> <Compile Include="IReflectedMethod.cs" /> <Compile Include="IReflectedProperty.cs" /> - <Compile Include="Metadata\CoreAssets.cs" /> + <Compile Include="Metadata\CoreAssetPropagator.cs" /> <Compile Include="ContentSource.cs" /> <Compile Include="Events\ContentEvents.cs" /> <Compile Include="Events\EventArgsInput.cs" /> |