| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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<FiberManager>();
- World.Instance.AddSingleton<NetServices>();
- World.Instance.AddSingleton<NavmeshComponent>();
- MainThreadScheduler mainThreadScheduler = World.Instance.AddSingleton<MainThreadScheduler>();
-
- await World.Instance.AddSingleton<ConfigComponent>().LoadAsync();
-
- int fiberId = FiberManager.Instance.Create(ConstFiberId.Main, 0, SceneType.Main, "");
- mainThreadScheduler.Add(fiberId);
- }
- }
- }
|