using System;
using StardewValley.Menus;
namespace StardewModdingAPI.Events
{
/// Event arguments for an event.
public class MenuChangedEventArgs : EventArgs
{
/*********
** Accessors
*********/
/// The previous menu, if any.
public IClickableMenu? OldMenu { get; }
/// The current menu, if any.
public IClickableMenu? NewMenu { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The previous menu, if any.
/// The current menu, if any.
internal MenuChangedEventArgs(IClickableMenu? oldMenu, IClickableMenu? newMenu)
{
this.OldMenu = oldMenu;
this.NewMenu = newMenu;
}
}
}