mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
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, "");
|
|
}
|
|
}
|
|
} |