From 0f3e3c3636eff806efb80574eb15027d88584c44 Mon Sep 17 00:00:00 2001 From: iisaev Date: Sat, 19 Sep 2026 22:06:39 +0300 Subject: [PATCH] upd --- src/FFBattleCore.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/FFBattleCore.cs b/src/FFBattleCore.cs index 25b02cf..eebdd33 100644 --- a/src/FFBattleCore.cs +++ b/src/FFBattleCore.cs @@ -23,7 +23,7 @@ namespace Cthangover.FFBattle /// for UI interaction. Registered via /// as "ff_battle". /// - public class FFBattleCore : IBattleCore + public class FFBattleCore : IBattleCore, IBattleAutoPlayable { /// Unique identifier for this battle system implementation, used by the core engine to locate it. public string Id => "ff_battle"; @@ -854,5 +854,17 @@ namespace Cthangover.FFBattle if (_endTurnButton != null) _endTurnButton.Visible = false; } + + /// + /// true while the core accepts a player turn advance; flips to + /// false synchronously at the start of . + /// + public bool IsWaitingForPlayerInput => _isPlayerTurn; + + /// + /// Automation hook: ends the player's turn through the same path the + /// end-turn button uses. + /// + public void AdvancePlayerTurn() => OnPlayerTurnEnd(); } }