[+] 接入ET8服务端

[+] 接入ET8服务端
This commit is contained in:
ALEXTANG
2023-07-13 12:23:48 +08:00
parent e0be062006
commit 336d4b2eb9
1316 changed files with 130657 additions and 626 deletions

View File

@@ -0,0 +1,58 @@
using System.IO;
using MemoryPack;
namespace ET
{
namespace EventType
{
public struct EntryEvent1
{
}
public struct EntryEvent2
{
}
public struct EntryEvent3
{
}
}
public static class Entry
{
public static void Init()
{
}
public static void Start()
{
StartAsync().Coroutine();
}
private static async ETTask StartAsync()
{
WinPeriod.Init();
MongoHelper.RegisterStruct<LSInput>();
MongoHelper.Register();
World.Instance.AddSingleton<OpcodeType>();
World.Instance.AddSingleton<IdValueGenerater>();
World.Instance.AddSingleton<ObjectPool>();
World.Instance.AddSingleton<ActorMessageQueue>();
World.Instance.AddSingleton<EntitySystemSingleton>();
World.Instance.AddSingleton<LSEntitySystemSingleton>();
World.Instance.AddSingleton<MessageDispatcherComponent>();
World.Instance.AddSingleton<NumericWatcherComponent>();
World.Instance.AddSingleton<AIDispatcherComponent>();
World.Instance.AddSingleton<ActorMessageDispatcherComponent>();
World.Instance.AddSingleton<NetServices>();
World.Instance.AddSingleton<NavmeshComponent>();
World.Instance.AddSingleton<FiberManager>();
await FiberManager.Instance.Create(SchedulerType.Main, ConstFiberId.Main, 0, SceneType.Main, "");
}
}
}