mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
25 lines
861 B
C#
25 lines
861 B
C#
using System.Net;
|
|
|
|
namespace ET.Server
|
|
{
|
|
[Invoke((long)SceneType.RoomRoot)]
|
|
public class FiberInit_RoomRoot: 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>();
|
|
root.AddComponent<ActorInnerComponent>();
|
|
root.AddComponent<ActorSenderComponent>();
|
|
Room room = root.AddChild<Room>();
|
|
root.AddComponent<LocationProxyComponent>();
|
|
root.AddComponent<ActorLocationSenderComponent>();
|
|
|
|
room.Name = "Server";
|
|
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |