IEventDispatcher.cs 535 B

123456789101112131415161718192021
  1. namespace XGame.Framework
  2. {
  3. /// <summary>
  4. /// 事件派发器
  5. /// </summary>
  6. public interface IEventDispatcher
  7. {
  8. /// <summary>
  9. /// 派发事件(无上下文)
  10. /// </summary>
  11. /// <param name="eventId">事件ID</param>
  12. void Notify(int eventId);
  13. /// <summary>
  14. /// 派发事件
  15. /// </summary>
  16. /// <param name="eventId">事件ID</param>
  17. /// <param name="args">上下文</param>
  18. void Notify(int eventId, object args);
  19. }
  20. }