mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] 接入ET8服务端
[+] 接入ET8服务端
This commit is contained in:
58
Assets/GameScripts/DotNet/Model/Share/Entry.cs
Normal file
58
Assets/GameScripts/DotNet/Model/Share/Entry.cs
Normal 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, "");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user