using System; using StardewModdingAPI.Framework.Events; namespace StardewModdingAPI.Events { /// Events raised when something happens in the mines. public static class MineEvents { /********* ** Properties *********/ /// The core event manager. private static EventManager EventManager; /********* ** Events *********/ /// Raised after the player warps to a new level of the mine. public static event EventHandler MineLevelChanged { add => MineEvents.EventManager.Mine_LevelChanged.Add(value); remove => MineEvents.EventManager.Mine_LevelChanged.Remove(value); } /********* ** Public methods *********/ /// Initialise the events. /// The core event manager. internal static void Init(EventManager eventManager) { MineEvents.EventManager = eventManager; } } }