2018-02-24 05:55:51 +08:00
|
|
|
namespace EventSystem.Framework.FunctionEvents
|
2018-02-23 03:43:18 +08:00
|
|
|
{
|
2018-12-30 18:00:05 +08:00
|
|
|
/// <summary>Used to handle various functions that occur on player interaction.</summary>
|
2018-02-24 05:55:51 +08:00
|
|
|
public class PlayerEvents
|
2018-02-23 03:43:18 +08:00
|
|
|
{
|
2018-12-30 18:00:05 +08:00
|
|
|
/// <summary>Occurs when the player enters the same tile as this event.</summary>
|
2018-02-23 03:43:18 +08:00
|
|
|
public functionEvent onPlayerEnter;
|
2018-12-30 18:00:05 +08:00
|
|
|
|
|
|
|
/// <summary>Occurs when the player leaves the same tile as this event.</summary>
|
2018-02-23 03:43:18 +08:00
|
|
|
public functionEvent onPlayerLeave;
|
|
|
|
|
2018-12-30 18:00:05 +08:00
|
|
|
/// <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>
|
2018-02-23 03:43:18 +08:00
|
|
|
public PlayerEvents(functionEvent OnPlayerEnter, functionEvent OnPlayerLeave)
|
|
|
|
{
|
|
|
|
this.onPlayerEnter = OnPlayerEnter;
|
|
|
|
this.onPlayerLeave = OnPlayerLeave;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|