summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-03-25 01:02:26 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-03-25 01:02:26 -0400
commitb0011bf65c6ea7ba8d66a219501ac181cbd64c90 (patch)
tree48b691fe62b63823b6b1c4fcd3513ec00a318750 /src/SMAPI
parente88666f5b2aa0bc8c222712835f081a243341a8f (diff)
downloadSMAPI-b0011bf65c6ea7ba8d66a219501ac181cbd64c90.tar.gz
SMAPI-b0011bf65c6ea7ba8d66a219501ac181cbd64c90.tar.bz2
SMAPI-b0011bf65c6ea7ba8d66a219501ac181cbd64c90.zip
use immutable set for invalidated asset names (#766)
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Events/AssetsInvalidatedEventArgs.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SMAPI/Events/AssetsInvalidatedEventArgs.cs b/src/SMAPI/Events/AssetsInvalidatedEventArgs.cs
index 0127f83a..f3d83dd6 100644
--- a/src/SMAPI/Events/AssetsInvalidatedEventArgs.cs
+++ b/src/SMAPI/Events/AssetsInvalidatedEventArgs.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Collections.Immutable;
using System.Linq;
namespace StardewModdingAPI.Events
@@ -11,7 +12,7 @@ namespace StardewModdingAPI.Events
** Accessors
*********/
/// <summary>The asset names that were invalidated.</summary>
- public IEnumerable<IAssetName> Names { get; }
+ public IReadOnlySet<IAssetName> Names { get; }
/*********
@@ -21,7 +22,7 @@ namespace StardewModdingAPI.Events
/// <param name="names">The asset names that were invalidated.</param>
internal AssetsInvalidatedEventArgs(IEnumerable<IAssetName> names)
{
- this.Names = names.ToArray();
+ this.Names = names.ToImmutableHashSet();
}
}
}