Permalink
Switch branches/tags
Nothing to show
Find file Copy path
1b081cc Feb 20, 2016
1 contributor

Users who have contributed to this file

30 lines (25 sloc) 636 Bytes
namespace SDD.Events {
/// <summary>
/// Interface for event handlers
/// </summary>
public interface IEventHandler {
/// <summary>
/// Subscribe to events
///
/// @example
/// Events.AddListener<MoveResolvedEvent>(OnMoveResolved);
/// or
/// EventManager.OnSetRule += OnSetRule;
/// </summary>
void SubscribeEvents();
/// <summary>
/// Unsubscribe from events
///
/// @example
/// Events.RemoveListener<MoveResolvedEvent>(OnMoveResolved);
/// or
/// EventManager.OnSetRule -= OnSetRule;
/// </summary>
void UnsubscribeEvents();
}
}