summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content/AssetLoadOperation.cs
diff options
context:
space:
mode:
authoratravita-mods <94934860+atravita-mods@users.noreply.github.com>2022-08-16 19:30:20 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-10-08 13:27:05 -0400
commit0a2a1a08def3d97f21b4138d9e39c563389b492a (patch)
tree3a94f10d6901a742885195eed1a6a4897cf2c7b0 /src/SMAPI/Framework/Content/AssetLoadOperation.cs
parent581763c36392e28ed6e05690ff84b66da5882e78 (diff)
downloadSMAPI-0a2a1a08def3d97f21b4138d9e39c563389b492a.tar.gz
SMAPI-0a2a1a08def3d97f21b4138d9e39c563389b492a.tar.bz2
SMAPI-0a2a1a08def3d97f21b4138d9e39c563389b492a.zip
Favor record structs when there are four or fewer elements.
Diffstat (limited to 'src/SMAPI/Framework/Content/AssetLoadOperation.cs')
-rw-r--r--src/SMAPI/Framework/Content/AssetLoadOperation.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Content/AssetLoadOperation.cs b/src/SMAPI/Framework/Content/AssetLoadOperation.cs
index 7af07dfd..58886849 100644
--- a/src/SMAPI/Framework/Content/AssetLoadOperation.cs
+++ b/src/SMAPI/Framework/Content/AssetLoadOperation.cs
@@ -8,5 +8,5 @@ namespace StardewModdingAPI.Framework.Content
/// <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 record AssetLoadOperation(IModMetadata Mod, IModMetadata? OnBehalfOf, AssetLoadPriority Priority, Func<IAssetInfo, object> GetData);
+ internal readonly record struct AssetLoadOperation(IModMetadata Mod, IModMetadata? OnBehalfOf, AssetLoadPriority Priority, Func<IAssetInfo, object> GetData);
}