using System; namespace StardewModdingAPI.Framework.Content { /// An operation which provides the initial instance of an asset when it's requested from the content pipeline. internal class AssetLoadOperation { /********* ** Accessors *********/ /// The mod applying the edit. public IModMetadata Mod { get; } /// Load the initial value for an asset. public Func GetData { get; } /********* ** Public methods *********/ /// Construct an instance. /// The mod applying the edit. /// Load the initial value for an asset. public AssetLoadOperation(IModMetadata mod, Func getData) { this.Mod = mod; this.GetData = getData; } } }