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

namespace StardewModdingAPI.Framework.Content
{
    /// <summary>An operation which provides the initial instance of 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 loads 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 asset is being loaded, if any.</param>
    /// <param name="GetData">Load the initial value for an asset.</param>
    internal readonly record struct AssetLoadOperation(IModMetadata Mod, IModMetadata? OnBehalfOf, AssetLoadPriority Priority, Func<IAssetInfo, object> GetData);
}