using System;
using System.Collections.Generic;
namespace ET.Server
{
public class ActorMessageDispatcherInfo
{
public SceneType SceneType { get; }
public IMActorHandler IMActorHandler { get; }
public ActorMessageDispatcherInfo(SceneType sceneType, IMActorHandler imActorHandler)
{
this.SceneType = sceneType;
this.IMActorHandler = imActorHandler;
}
}
///
/// Actor消息分发组件
///
[ComponentOf(typeof(Scene))]
public class ActorMessageDispatcherComponent: Entity, IAwake, IDestroy, ILoad
{
[StaticField]
public static ActorMessageDispatcherComponent Instance;
public readonly Dictionary> ActorMessageHandlers = new();
}
}