#nullable disable
using System;
using StardewModdingAPI.Events;
namespace StardewModdingAPI.Framework.Events
{
///
internal class ModPlayerEvents : ModEventsBase, IPlayerEvents
{
/*********
** Accessors
*********/
///
public event EventHandler InventoryChanged
{
add => this.EventManager.InventoryChanged.Add(value, this.Mod);
remove => this.EventManager.InventoryChanged.Remove(value);
}
///
public event EventHandler LevelChanged
{
add => this.EventManager.LevelChanged.Add(value, this.Mod);
remove => this.EventManager.LevelChanged.Remove(value);
}
///
public event EventHandler Warped
{
add => this.EventManager.Warped.Add(value, this.Mod);
remove => this.EventManager.Warped.Remove(value);
}
/*********
** Public methods
*********/
/// Construct an instance.
/// The mod which uses this instance.
/// The underlying event manager.
internal ModPlayerEvents(IModMetadata mod, EventManager eventManager)
: base(mod, eventManager) { }
}
}