| 123456789101112131415161718192021222324252627 |
- using System;
- using System.Collections.Generic;
- namespace ETModel
- {
- /// <summary>
- /// Actor消息分发组件
- /// </summary>
- public class ActorMessageDispatherComponent : Component
- {
- public readonly Dictionary<string, IActorInterceptTypeHandler> ActorTypeHandlers = new Dictionary<string, IActorInterceptTypeHandler>();
- public readonly Dictionary<Type, IMActorHandler> ActorMessageHandlers = new Dictionary<Type, IMActorHandler>();
- public override void Dispose()
- {
- if (this.IsDisposed)
- {
- return;
- }
- base.Dispose();
- this.ActorMessageHandlers.Clear();
- this.ActorTypeHandlers.Clear();
- }
- }
- }
|