| 12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- namespace ET
- {
- public class ActorMessageDispatcherInfo
- {
- public SceneType SceneType { get; }
-
- public IMActorHandler IMActorHandler { get; }
- public ActorMessageDispatcherInfo(SceneType sceneType, IMActorHandler imActorHandler)
- {
- this.SceneType = sceneType;
- this.IMActorHandler = imActorHandler;
- }
- }
-
- /// <summary>
- /// Actor消息分发组件
- /// </summary>
- public class ActorMessageDispatcherComponent: Entity, IAwake, IDestroy, ILoad
- {
- public static ActorMessageDispatcherComponent Instance;
- public readonly Dictionary<Type, List<ActorMessageDispatcherInfo>> ActorMessageHandlers = new();
- }
- }
|