From 9c49d090a06c96ff2c1f4978da67e864177c2a2e Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 11 Mar 2018 20:03:52 -0400 Subject: reorganise and update core content logic for Stardew Valley 1.3 (#453) --- src/SMAPI/Metadata/CoreAssets.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/SMAPI/Metadata') diff --git a/src/SMAPI/Metadata/CoreAssets.cs b/src/SMAPI/Metadata/CoreAssets.cs index c027df25..378117a8 100644 --- a/src/SMAPI/Metadata/CoreAssets.cs +++ b/src/SMAPI/Metadata/CoreAssets.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework.Graphics; -using StardewModdingAPI.Framework; using StardewModdingAPI.Framework.Reflection; using StardewValley; using StardewValley.BellsAndWhistles; @@ -24,7 +23,7 @@ namespace StardewModdingAPI.Metadata protected readonly Func GetNormalisedPath; /// Setters which update static or singleton texture fields indexed by normalised asset key. - private readonly IDictionary> SingletonSetters; + private readonly IDictionary> SingletonSetters; /********* @@ -37,7 +36,7 @@ namespace StardewModdingAPI.Metadata { this.GetNormalisedPath = getNormalisedPath; this.SingletonSetters = - new Dictionary> + new Dictionary> { // from CraftingRecipe.InitShared ["Data\\CraftingRecipes"] = (content, key) => CraftingRecipe.craftingRecipes = content.Load>(key), @@ -151,10 +150,10 @@ namespace StardewModdingAPI.Metadata /// The content manager through which to reload the asset. /// The asset key to reload. /// Returns whether an asset was reloaded. - public bool ReloadForKey(SContentManager content, string key) + public bool ReloadForKey(LocalizedContentManager content, string key) { // static assets - if (this.SingletonSetters.TryGetValue(key, out Action reload)) + if (this.SingletonSetters.TryGetValue(key, out Action reload)) { reload(content, key); return true; -- cgit