| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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<LogMsg>();
-
- World.Instance.AddSingleton<FiberManager>();
-
- await FiberManager.Instance.Create(SchedulerType.Main, ConstFiberId.Main, 0, SceneType.Main, "");
- }
- }
- }
|