#nullable disable using System; using StardewModdingAPI.Events; namespace StardewModdingAPI { /// Provides the initial version for matching assets loaded by the game. SMAPI will raise an error if two mods try to load the same asset; in most cases you should use instead. [Obsolete($"Use {nameof(IMod.Helper)}.{nameof(IModHelper.Events)}.{nameof(IModEvents.Content)} instead. This interface will be removed in SMAPI 4.0.0.")] public interface IAssetLoader { /********* ** Public methods *********/ /// Get whether this instance can load the initial version of the given asset. /// Basic metadata about the asset being loaded. bool CanLoad(IAssetInfo asset); /// Load a matched asset. /// Basic metadata about the asset being loaded. T Load(IAssetInfo asset); } }