From 7c76f6a3b938adac52d0337259fa5b603da2ec66 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 27 十一月 2025 18:40:00 +0800
Subject: [PATCH] 125 战斗 新增音效
---
Main/System/Battle/BattleManager.cs | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/Main/System/Battle/BattleManager.cs b/Main/System/Battle/BattleManager.cs
index 6257ef5..e98dbec 100644
--- a/Main/System/Battle/BattleManager.cs
+++ b/Main/System/Battle/BattleManager.cs
@@ -681,4 +681,38 @@
}
}
+ public void FocusBattleField(BattleField battleField)
+ {
+ foreach (var kvp in battleFields)
+ {
+ BattleField bf = kvp.Value;
+ if (bf == null)
+ continue;
+
+ if (bf == battleField)
+ {
+ bf.SetFocus(true);
+ }
+ else
+ {
+ bf.SetFocus(false);
+ }
+ }
+ }
+
+ public BattleField GetFocusBattleField()
+ {
+ foreach (var kvp in battleFields)
+ {
+ BattleField bf = kvp.Value;
+ if (bf == null)
+ continue;
+
+ if (bf.IsFocus())
+ {
+ return bf;
+ }
+ }
+ return null;
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0