using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EventSystem.Framework.FunctionEvents { /// /// Used to handle various functions that occur on player interaction. /// public class PlayerEvents { /// /// Occurs when the player enters the same tile as this event. /// public functionEvent onPlayerEnter; /// /// Occurs when the player leaves the same tile as this event. /// public functionEvent onPlayerLeave; /// /// Constructor. /// /// /// public PlayerEvents(functionEvent OnPlayerEnter, functionEvent OnPlayerLeave) { this.onPlayerEnter = OnPlayerEnter; this.onPlayerLeave = OnPlayerLeave; } } }