Files
SVSimServer/SVSim.BattleEngine/Engine/BattleControl.cs
gamer147 c9628dee01 cull(engine-cleanup): pass-8 phase-2 cascade round 1
[trim] fully-unreachable files deleted: 6
[trim] files edited: 55, files deleted: 0, nodes removed: 244
[type-trim] files edited: 1, types removed: 1

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-03 21:18:18 -04:00

25 lines
942 B
C#

using System;
using System.Collections;
using UnityEngine;
using Wizard.Battle.UI;
// Post-Phase-5b (2026-07-03) UI stub. BattleControl handles UI-side end-of-battle
// scene-change cleanup (DestroyBattleEffectContainer, ResetEnemyData, UIContainer
// visibility, iTween tear-down). Every method is only invoked from UI code paths
// (DialogBase.OnClose, MyPageBannerBase, FreeAndRankMatchDeckSelectConfirmDialog,
// RecoveryManagerBase, SceneTransition) that don't run headless. The type stays
// because GameMgr.GetBattleCtrl() lazy-inits it; the method bodies are no-ops.
public class BattleControl : MonoBehaviour
{
public void BattleEnd(UIManager.ViewScene MoveTo, Action callback = null, Action<UIManager.ChangeViewSceneParam> paramCustomize = null, object sceneParam = null)
{
callback?.Invoke();
}
public IEnumerator BattleEnd(Action callback = null)
{
yield return null;
callback?.Invoke();
}
}