IEventDispatcher.cs 691 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. namespace FairyGUI
  4. {
  5. /// <summary>
  6. ///
  7. /// </summary>
  8. public interface IEventDispatcher
  9. {
  10. void AddEventListener(string strType, EventCallback0 callback);
  11. void AddEventListener(string strType, EventCallback1 callback);
  12. void RemoveEventListener(string strType, EventCallback0 callback);
  13. void RemoveEventListener(string strType, EventCallback1 callback);
  14. bool DispatchEvent(EventContext context);
  15. bool DispatchEvent(string strType);
  16. bool DispatchEvent(string strType, object data);
  17. bool DispatchEvent(string strType, object data, object initiator);
  18. }
  19. }