summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content/AssetEditOperation.cs
blob: 11b8811bfac6837454864f36e6a651ceb17d5a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
using System;
using StardewModdingAPI.Events;

namespace StardewModdingAPI.Framework.Content
{
    /// <summary>An edit to apply to an asset when it's requested from the content pipeline.</summary>
    /// <param name="Mod">The mod applying the edit.</param>
    /// <param name="Priority">If there are multiple edits that apply to the same asset, the priority with which this one should be applied.</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>
    internal record AssetEditOperation(IModMetadata Mod, AssetEditPriority Priority, IModMetadata? OnBehalfOf, Action<IAssetData> ApplyEdit);
}