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