using System;
namespace StardewModdingAPI.Events
{
/// Event arguments for an event.
public class AssetReadyEventArgs : EventArgs
{
/*********
** Accessors
*********/
/// The name of the asset being requested.
public IAssetName Name { get; }
/// The with any locale codes stripped.
/// For example, if contains a locale like Data/Bundles.fr-FR, this will be the name without locale like Data/Bundles. If the name has no locale, this field is equivalent.
public IAssetName NameWithoutLocale { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The name of the asset being requested.
/// The with any locale codes stripped.
internal AssetReadyEventArgs(IAssetName name, IAssetName nameWithoutLocale)
{
this.Name = name;
this.NameWithoutLocale = nameWithoutLocale;
}
}
}