using System; using System.Collections.Generic; using System.Collections.Immutable; namespace StardewModdingAPI.Events { /// Event arguments for an event. public class AssetsInvalidatedEventArgs : EventArgs { /********* ** Accessors *********/ /// The asset names that were invalidated. public IReadOnlySet Names { get; } /// The with any locale codes stripped. /// For example, if contains a locale like Data/Bundles.fr-FR, this will have the name without locale like Data/Bundles. If the name has no locale, this field is equivalent. public IReadOnlySet NamesWithoutLocale { get; } /********* ** Public methods *********/ /// Construct an instance. /// The asset names that were invalidated. /// The with any locale codes stripped. internal AssetsInvalidatedEventArgs(IEnumerable names, IEnumerable namesWithoutLocale) { this.Names = names.ToImmutableHashSet(); this.NamesWithoutLocale = namesWithoutLocale.ToImmutableHashSet(); } } }