Files
TEngine/Assets/GameScripts/DotNet/Hotfix/Server/Demo/Gate/GateMapFactory.cs
ALEXTANG 336d4b2eb9 [+] 接入ET8服务端
[+] 接入ET8服务端
2023-07-13 12:23:48 +08:00

20 lines
655 B
C#

namespace ET.Server
{
public static class GateMapFactory
{
public static async ETTask<Scene> Create(Entity parent, long id, long instanceId, string name)
{
await ETTask.CompletedTask;
Scene scene = EntitySceneFactory.CreateScene(parent, id, instanceId, SceneType.Map, name);
scene.AddComponent<UnitComponent>();
scene.AddComponent<AOIManagerComponent>();
scene.AddComponent<RoomManagerComponent>();
scene.AddComponent<MailBoxComponent, MailBoxType>(MailBoxType.UnOrderedMessage);
return scene;
}
}
}