#nullable disable
using System;
using StardewModdingAPI.Events;
namespace StardewModdingAPI.Framework.Events
{
///
internal class ModContentEvents : ModEventsBase, IContentEvents
{
/*********
** Accessors
*********/
///
public event EventHandler AssetRequested
{
add => this.EventManager.AssetRequested.Add(value, this.Mod);
remove => this.EventManager.AssetRequested.Remove(value);
}
///
public event EventHandler AssetsInvalidated
{
add => this.EventManager.AssetsInvalidated.Add(value, this.Mod);
remove => this.EventManager.AssetsInvalidated.Remove(value);
}
///
public event EventHandler AssetReady
{
add => this.EventManager.AssetReady.Add(value, this.Mod);
remove => this.EventManager.AssetReady.Remove(value);
}
///
public event EventHandler LocaleChanged
{
add => this.EventManager.LocaleChanged.Add(value, this.Mod);
remove => this.EventManager.LocaleChanged.Remove(value);
}
/*********
** Public methods
*********/
/// Construct an instance.
/// The mod which uses this instance.
/// The underlying event manager.
internal ModContentEvents(IModMetadata mod, EventManager eventManager)
: base(mod, eventManager) { }
}
}