blob: fa189d4464090c5331178d5f8c0d7f7b56cd0485 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
using System;
namespace StardewModdingAPI.Framework.Content
{
/// <summary>An edit to apply to an asset when it's requested from the content pipeline.</summary>
internal class AssetEditOperation
{
/*********
** Accessors
*********/
/// <summary>The mod applying the edit.</summary>
public IModMetadata Mod { get; }
/// <summary>Apply the edit to an asset.</summary>
public Action<IAssetData> ApplyEdit { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="mod">The mod applying the edit.</param>
/// <param name="applyEdit">Apply the edit to an asset.</param>
public AssetEditOperation(IModMetadata mod, Action<IAssetData> applyEdit)
{
this.Mod = mod;
this.ApplyEdit = applyEdit;
}
}
}
|