From c868e59c880048e848a8dfa6e56dcc30440b76fa Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 10 十一月 2025 22:45:00 +0800
Subject: [PATCH] 0312 回到登录界面销毁所有战场
---
Main/System/Battle/BattleManager.cs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Main/System/Battle/BattleManager.cs b/Main/System/Battle/BattleManager.cs
index 23bd7dc..39f4348 100644
--- a/Main/System/Battle/BattleManager.cs
+++ b/Main/System/Battle/BattleManager.cs
@@ -652,4 +652,16 @@
}
return null;
}
+
+ public void DestroyAllBattleField()
+ {
+ foreach (var kvp in battleFields)
+ {
+ BattleField battleField = kvp.Value;
+ if (battleField == null)
+ continue;
+
+ DestroyBattleField(battleField);
+ }
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0