feat(battle-engine): M1 auto-copy closure (782 battle-logic files)
Compile-driven bulk-copy loop (tools/engine-port/m1_copy_loop.py) pulled the precise reference closure of the battle-core roots, stopping at the classify god-object/View-VFX-UI boundary. 782 files; no re-explosion (M0 had estimated ~order 1000). Residual frontier = 52 shim-classified + 80 external (Unity/BCL) types to author next.
This commit is contained in:
48
SVSim.BattleEngine/Engine/Wizard/QuestSelectionButtonBase.cs
Normal file
48
SVSim.BattleEngine/Engine/Wizard/QuestSelectionButtonBase.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public abstract class QuestSelectionButtonBase : MonoBehaviour
|
||||
{
|
||||
public enum ButtonType
|
||||
{
|
||||
QUEST = 0,
|
||||
PUZZLE = 1,
|
||||
EVENT_STORY = 2,
|
||||
BOSS_RUSH = 3,
|
||||
None = 99
|
||||
}
|
||||
|
||||
[SerializeField]
|
||||
protected TweenAlpha _selectSpriteTween;
|
||||
|
||||
protected QuestSelectionPage _questSelectionPage;
|
||||
|
||||
public abstract void Initialize(QuestSelectionButtonData data, bool isOpenExtra, bool isLastDay, Action onClick = null);
|
||||
|
||||
public void SetActiveSelectSprite(bool isActive)
|
||||
{
|
||||
if (isActive != _selectSpriteTween.gameObject.activeSelf)
|
||||
{
|
||||
_selectSpriteTween.gameObject.SetActive(isActive);
|
||||
if (isActive)
|
||||
{
|
||||
_selectSpriteTween.PlayPingPong(isIncreaseAlpha: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract void SetTexture(string textureId);
|
||||
|
||||
protected abstract void SetButtonRootToGrey(bool isGrey);
|
||||
|
||||
public abstract void SelectChara();
|
||||
|
||||
public abstract void OnDecideButtonClick();
|
||||
|
||||
public void SetQuestSelectionPage(QuestSelectionPage questSelectionPage)
|
||||
{
|
||||
_questSelectionPage = questSelectionPage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user