|
@@ -2,24 +2,16 @@
|
|
{
|
|
{
|
|
namespace EventType
|
|
namespace EventType
|
|
{
|
|
{
|
|
- public struct EntryEvent1
|
|
|
|
- {
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public struct EntryEvent2
|
|
|
|
- {
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public struct EntryEvent3
|
|
|
|
- {
|
|
|
|
- }
|
|
|
|
|
|
+ public struct EntryLoadCfg { }
|
|
|
|
+ public struct EntryEvent1 { }
|
|
|
|
+ public struct EntryEvent2 { }
|
|
|
|
+ public struct EntryEvent3 { }
|
|
}
|
|
}
|
|
|
|
|
|
public static class Entry
|
|
public static class Entry
|
|
{
|
|
{
|
|
public static void Init()
|
|
public static void Init()
|
|
{
|
|
{
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public static void Start()
|
|
public static void Start()
|
|
@@ -29,6 +21,7 @@
|
|
|
|
|
|
private static async ETTask StartAsync()
|
|
private static async ETTask StartAsync()
|
|
{
|
|
{
|
|
|
|
+ Log.Debug("Entry start");
|
|
WinPeriod.Init();
|
|
WinPeriod.Init();
|
|
|
|
|
|
MongoHelper.Init();
|
|
MongoHelper.Init();
|
|
@@ -36,8 +29,7 @@
|
|
|
|
|
|
Game.AddSingleton<NetServices>();
|
|
Game.AddSingleton<NetServices>();
|
|
Game.AddSingleton<Root>();
|
|
Game.AddSingleton<Root>();
|
|
- await Game.AddSingleton<ConfigComponent>().LoadAsync();
|
|
|
|
-
|
|
|
|
|
|
+ await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryLoadCfg());
|
|
await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent1());
|
|
await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent1());
|
|
await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent2());
|
|
await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent2());
|
|
await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent3());
|
|
await EventSystem.Instance.PublishAsync(Root.Instance.Scene, new EventType.EntryEvent3());
|