From f8f8b237996a1c883d43e539a379bf713a5fd7be Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 8 May 2022 18:50:07 -0400 Subject: use records for asset edit operations --- src/SMAPI/Framework/Content/AssetOperationGroup.cs | 33 +++------------------- 1 file changed, 4 insertions(+), 29 deletions(-) (limited to 'src/SMAPI/Framework/Content/AssetOperationGroup.cs') diff --git a/src/SMAPI/Framework/Content/AssetOperationGroup.cs b/src/SMAPI/Framework/Content/AssetOperationGroup.cs index a2fcb722..1566a8f0 100644 --- a/src/SMAPI/Framework/Content/AssetOperationGroup.cs +++ b/src/SMAPI/Framework/Content/AssetOperationGroup.cs @@ -1,33 +1,8 @@ namespace StardewModdingAPI.Framework.Content { /// A set of operations to apply to an asset for a given or implementation. - internal class AssetOperationGroup - { - /********* - ** Accessors - *********/ - /// The mod applying the changes. - public IModMetadata Mod { get; } - - /// The load operations to apply. - public AssetLoadOperation[] LoadOperations { get; } - - /// The edit operations to apply. - public AssetEditOperation[] EditOperations { get; } - - - /********* - ** Public methods - *********/ - /// Construct an instance. - /// The mod applying the changes. - /// The load operations to apply. - /// The edit operations to apply. - public AssetOperationGroup(IModMetadata mod, AssetLoadOperation[] loadOperations, AssetEditOperation[] editOperations) - { - this.Mod = mod; - this.LoadOperations = loadOperations; - this.EditOperations = editOperations; - } - } + /// The mod applying the changes. + /// The load operations to apply. + /// The edit operations to apply. + internal record AssetOperationGroup(IModMetadata Mod, AssetLoadOperation[] LoadOperations, AssetEditOperation[] EditOperations); } -- cgit