Stardew_Valley_Mods/GeneralMods/MapEvents/Framework/FunctionEvents/PlayerEvents.cs

22 lines
927 B
C#
Raw Normal View History

2018-02-24 05:55:51 +08:00
namespace EventSystem.Framework.FunctionEvents
{
/// <summary>Used to handle various functions that occur on player interaction.</summary>
2018-02-24 05:55:51 +08:00
public class PlayerEvents
{
/// <summary>Occurs when the player enters the same tile as this event.</summary>
public functionEvent onPlayerEnter;
/// <summary>Occurs when the player leaves the same tile as this event.</summary>
public functionEvent onPlayerLeave;
/// <summary>Construct an instance.</summary>
/// <param name="OnPlayerEnter">Occurs when the player enters the same tile as this event.</param>
/// <param name="OnPlayerLeave">Occurs when the player leaves the same tile as this event.</param>
public PlayerEvents(functionEvent OnPlayerEnter, functionEvent OnPlayerLeave)
{
this.onPlayerEnter = OnPlayerEnter;
this.onPlayerLeave = OnPlayerLeave;
}
}
}