mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
22 lines
850 B
C#
22 lines
850 B
C#
using System.Net;
|
|
|
|
namespace ET.Server
|
|
{
|
|
[Invoke((long)SceneType.NetInner)]
|
|
public class FiberInit_NetInner: AInvokeHandler<FiberInit, ETTask>
|
|
{
|
|
public override async ETTask Handle(FiberInit fiberInit)
|
|
{
|
|
Scene root = fiberInit.Fiber.Root;
|
|
root.AddComponent<MailBoxComponent, MailBoxType>(MailBoxType.UnOrderedMessage);
|
|
root.AddComponent<TimerComponent>();
|
|
root.AddComponent<CoroutineLockComponent>();
|
|
StartSceneConfig startSceneConfig = StartSceneConfigCategory.Instance.Get(fiberInit.Fiber.Id);
|
|
root.AddComponent<ActorOuterComponent, IPEndPoint>(startSceneConfig.InnerIPPort);
|
|
root.AddComponent<ActorInnerComponent>();
|
|
//root.AddComponent<ActorSenderComponent>();
|
|
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |