M0 回合制战斗壳层:接口与单局状态、调试入口、暂停联动

This commit is contained in:
huangjun
2026-09-01 10:20:02 +08:00
parent fce331da84
commit 8413c2688b
82 changed files with 12032 additions and 8 deletions
@@ -12,10 +12,22 @@ public partial class GameEntry : MonoBehaviour
public static SaveComponent Save { get; private set; }
public static RandomComponent Random { get; private set; }
public static TurnBattleComponent TurnBattle { get; private set; }
/// <summary>
/// 单局战斗协调器(普通类,非场景组件)。
/// </summary>
public static RunBattleCoordinator RunBattle { get; private set; }
private static void InitCustomComponents()
{
BuiltinData = UnityGameFramework.Runtime.GameEntry.GetComponent<BuiltinDataComponent>();
Luban = UnityGameFramework.Runtime.GameEntry.GetComponent<LubanComponent>();
Save = UnityGameFramework.Runtime.GameEntry.GetComponent<SaveComponent>();
Random = UnityGameFramework.Runtime.GameEntry.GetComponent<RandomComponent>();
TurnBattle = UnityGameFramework.Runtime.GameEntry.GetComponent<TurnBattleComponent>();
RunBattle = new RunBattleCoordinator();
}
}