From baeaf826a9bb185c78732b5f2b91c3f499246f1a Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 7 Aug 2017 14:12:18 -0400 Subject: add asset editors & loaders to content API in 2.0 (#255) --- src/StardewModdingAPI/IContentHelper.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/StardewModdingAPI/IContentHelper.cs') diff --git a/src/StardewModdingAPI/IContentHelper.cs b/src/StardewModdingAPI/IContentHelper.cs index beaaf5d4..f32c1d18 100644 --- a/src/StardewModdingAPI/IContentHelper.cs +++ b/src/StardewModdingAPI/IContentHelper.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; @@ -7,6 +8,21 @@ namespace StardewModdingAPI /// Provides an API for loading content assets. public interface IContentHelper : IModLinked { + /********* + ** Accessors + *********/ +#if !SMAPI_1_x + /// Interceptors which provide the initial versions of matching content assets. + IList AssetLoaders { get; } + + /// Interceptors which edit matching content assets after they're loaded. + IList AssetEditors { get; } +#endif + + + /********* + ** Public methods + *********/ /// Load content from the game folder or mod folder (if not already cached), and return it. When loading a .png file, this must be called outside the game's draw loop. /// The expected data type. The main supported types are and dictionaries; other types may be supported by the game's content pipeline. /// The asset key to fetch (if the is ), or the local path to a content file relative to the mod folder. -- cgit