blob: f3d83dd63b8ddfbe24fac33e699244b2cb2c2a4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
namespace StardewModdingAPI.Events
{
/// <summary>Event arguments for an <see cref="IContentEvents.AssetsInvalidated"/> event.</summary>
public class AssetsInvalidatedEventArgs : EventArgs
{
/*********
** Accessors
*********/
/// <summary>The asset names that were invalidated.</summary>
public IReadOnlySet<IAssetName> Names { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="names">The asset names that were invalidated.</param>
internal AssetsInvalidatedEventArgs(IEnumerable<IAssetName> names)
{
this.Names = names.ToImmutableHashSet();
}
}
}
|