summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content/AssetEditOperation.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/Content/AssetEditOperation.cs')
-rw-r--r--src/SMAPI/Framework/Content/AssetEditOperation.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Content/AssetEditOperation.cs b/src/SMAPI/Framework/Content/AssetEditOperation.cs
index fa189d44..14db231c 100644
--- a/src/SMAPI/Framework/Content/AssetEditOperation.cs
+++ b/src/SMAPI/Framework/Content/AssetEditOperation.cs
@@ -11,6 +11,9 @@ namespace StardewModdingAPI.Framework.Content
/// <summary>The mod applying the edit.</summary>
public IModMetadata Mod { get; }
+ /// <summary>The content pack on whose behalf the edit is being applied, if any.</summary>
+ public IModMetadata OnBehalfOf { get; }
+
/// <summary>Apply the edit to an asset.</summary>
public Action<IAssetData> ApplyEdit { get; }
@@ -20,10 +23,12 @@ namespace StardewModdingAPI.Framework.Content
*********/
/// <summary>Construct an instance.</summary>
/// <param name="mod">The mod applying the edit.</param>
+ /// <param name="onBehalfOf">The content pack on whose behalf the edit is being applied, if any.</param>
/// <param name="applyEdit">Apply the edit to an asset.</param>
- public AssetEditOperation(IModMetadata mod, Action<IAssetData> applyEdit)
+ public AssetEditOperation(IModMetadata mod, IModMetadata onBehalfOf, Action<IAssetData> applyEdit)
{
this.Mod = mod;
+ this.OnBehalfOf = onBehalfOf;
this.ApplyEdit = applyEdit;
}
}