MessageDispatcherComponent.cs 434 B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. namespace ET
  3. {
  4. /// <summary>
  5. /// 消息分发组件
  6. /// </summary>
  7. public class MessageDispatcherComponent: Entity, IAwake, IDestroy, ILoad
  8. {
  9. public static MessageDispatcherComponent Instance
  10. {
  11. get;
  12. set;
  13. }
  14. public readonly Dictionary<ushort, List<IMHandler>> Handlers = new Dictionary<ushort, List<IMHandler>>();
  15. }
  16. }