using System;
using StardewModdingAPI.Events;
namespace StardewModdingAPI.Framework.Events
{
///
internal class ModDisplayEvents : ModEventsBase, IDisplayEvents
{
/*********
** Accessors
*********/
///
public event EventHandler MenuChanged
{
add => this.EventManager.MenuChanged.Add(value, this.Mod);
remove => this.EventManager.MenuChanged.Remove(value);
}
///
public event EventHandler Rendering
{
add => this.EventManager.Rendering.Add(value, this.Mod);
remove => this.EventManager.Rendering.Remove(value);
}
///
public event EventHandler Rendered
{
add => this.EventManager.Rendered.Add(value, this.Mod);
remove => this.EventManager.Rendered.Remove(value);
}
///
public event EventHandler RenderingWorld
{
add => this.EventManager.RenderingWorld.Add(value, this.Mod);
remove => this.EventManager.RenderingWorld.Remove(value);
}
///
public event EventHandler RenderedWorld
{
add => this.EventManager.RenderedWorld.Add(value, this.Mod);
remove => this.EventManager.RenderedWorld.Remove(value);
}
///
public event EventHandler RenderingActiveMenu
{
add => this.EventManager.RenderingActiveMenu.Add(value, this.Mod);
remove => this.EventManager.RenderingActiveMenu.Remove(value);
}
///
public event EventHandler RenderedActiveMenu
{
add => this.EventManager.RenderedActiveMenu.Add(value, this.Mod);
remove => this.EventManager.RenderedActiveMenu.Remove(value);
}
///
public event EventHandler RenderingHud
{
add => this.EventManager.RenderingHud.Add(value, this.Mod);
remove => this.EventManager.RenderingHud.Remove(value);
}
///
public event EventHandler RenderedHud
{
add => this.EventManager.RenderedHud.Add(value, this.Mod);
remove => this.EventManager.RenderedHud.Remove(value);
}
///
public event EventHandler WindowResized
{
add => this.EventManager.WindowResized.Add(value, this.Mod);
remove => this.EventManager.WindowResized.Remove(value);
}
/*********
** Public methods
*********/
/// Construct an instance.
/// The mod which uses this instance.
/// The underlying event manager.
internal ModDisplayEvents(IModMetadata mod, EventManager eventManager)
: base(mod, eventManager) { }
}
}