using System;
using StardewModdingAPI.Framework.Events;
namespace StardewModdingAPI.Events
{
/// Events raised when the game loads content.
public static class ContentEvents
{
/*********
** Properties
*********/
/// The core event manager.
private static EventManager EventManager;
/*********
** Events
*********/
/// Raised after the content language changes.
public static event EventHandler> AfterLocaleChanged
{
add => ContentEvents.EventManager.Legacy_LocaleChanged.Add(value);
remove => ContentEvents.EventManager.Legacy_LocaleChanged.Remove(value);
}
/*********
** Public methods
*********/
/// Initialise the events.
/// The core event manager.
internal static void Init(EventManager eventManager)
{
ContentEvents.EventManager = eventManager;
}
}
}