mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] TEngineServer
[+] TEngineServer
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using GameBase;
|
||||
using TEngine;
|
||||
|
||||
public partial class GameApp:Singleton<GameApp>
|
||||
{
|
||||
private static List<Assembly> _hotfixAssembly;
|
||||
|
||||
/// <summary>
|
||||
/// 热更域App主入口。
|
||||
/// </summary>
|
||||
/// <param name="objects"></param>
|
||||
public static void Entrance(object[] objects)
|
||||
{
|
||||
_hotfixAssembly = (List<Assembly>)objects[0];
|
||||
Log.Warning("======= 看到此条日志代表你成功运行了热更新代码 =======");
|
||||
Log.Warning("======= Entrance GameApp =======");
|
||||
Instance.Init();
|
||||
|
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using TEngine;
|
||||
using TEngine.Core;
|
||||
|
||||
public partial class GameApp
|
||||
{
|
||||
@@ -25,6 +26,13 @@ public partial class GameApp
|
||||
/// </summary>
|
||||
private void RegisterAllSystem()
|
||||
{
|
||||
if (_hotfixAssembly != null)
|
||||
{
|
||||
AssemblyManager.Load(AssemblyName.GameBase, _hotfixAssembly.Find(t=>t.FullName.Contains("GameBase")));
|
||||
AssemblyManager.Load(AssemblyName.GameProto, _hotfixAssembly.Find(t=>t.FullName.Contains("GameProto")));
|
||||
AssemblyManager.Load(AssemblyName.GameLogic, GetType().Assembly);
|
||||
}
|
||||
|
||||
//带生命周期的单例系统。
|
||||
AddLogicSys(BehaviourSingleSystem.Instance);
|
||||
}
|
||||
|
@@ -7,7 +7,8 @@
|
||||
"GUID:aa06d4cc755c979489c256c1bcca1dfb",
|
||||
"GUID:641632c4f8079b94f963b5284d859a12",
|
||||
"GUID:6055be8ebefd69e48b49212b09b47b2f",
|
||||
"GUID:15fc0a57446b3144c949da3e2b9737a9"
|
||||
"GUID:15fc0a57446b3144c949da3e2b9737a9",
|
||||
"GUID:ecba4a58c7f7a4842b72ce2c77aecf9b"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
Reference in New Issue
Block a user