#nullable disable
using StardewModdingAPI.Events;
namespace StardewModdingAPI.Framework.Events
{
///
internal class ModEvents : IModEvents
{
/*********
** Accessors
*********/
///
public IContentEvents Content { get; }
///
public IDisplayEvents Display { get; }
///
public IGameLoopEvents GameLoop { get; }
///
public IInputEvents Input { get; }
///
public IMultiplayerEvents Multiplayer { get; }
///
public IPlayerEvents Player { get; }
///
public IWorldEvents World { get; }
///
public ISpecializedEvents Specialized { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The mod which uses this instance.
/// The underlying event manager.
public ModEvents(IModMetadata mod, EventManager eventManager)
{
this.Content = new ModContentEvents(mod, eventManager);
this.Display = new ModDisplayEvents(mod, eventManager);
this.GameLoop = new ModGameLoopEvents(mod, eventManager);
this.Input = new ModInputEvents(mod, eventManager);
this.Multiplayer = new ModMultiplayerEvents(mod, eventManager);
this.Player = new ModPlayerEvents(mod, eventManager);
this.World = new ModWorldEvents(mod, eventManager);
this.Specialized = new ModSpecializedEvents(mod, eventManager);
}
}
}