using System;
namespace StardewModdingAPI.Framework.Content
{
/// An edit to apply to an asset when it's requested from the content pipeline.
internal class AssetEditOperation
{
/*********
** Accessors
*********/
/// The mod applying the edit.
public IModMetadata Mod { get; }
/// Apply the edit to an asset.
public Action ApplyEdit { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The mod applying the edit.
/// Apply the edit to an asset.
public AssetEditOperation(IModMetadata mod, Action applyEdit)
{
this.Mod = mod;
this.ApplyEdit = applyEdit;
}
}
}