namespace XGame.Framework
{
    /// <summary>
    /// 事件监听器
    /// </summary>
    public interface IEventListener
    {
        /// <summary>
        /// 添加监听
        /// </summary>
        /// <param name="eventId">事件ID</param>
        /// <param name="handler">监听回调</param>
        void AddListener(int eventId, EventDelegate handler);
        /// <summary>
        /// 移除监听
        /// </summary>
        /// <param name="eventId">事件ID</param>
        /// <param name="handler">监听回调</param>
        void RemoveListener(int eventId, EventDelegate handler);
    }
}
