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; /// Construct an instance. /// Occurs when the player enters the same tile as this event. /// Occurs when the player leaves the same tile as this event. public PlayerEvents(functionEvent OnPlayerEnter, functionEvent OnPlayerLeave) { this.onPlayerEnter = OnPlayerEnter; this.onPlayerLeave = OnPlayerLeave; } } }