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:
gamer147
2026-06-05 16:57:20 -04:00
parent 23a6596558
commit 0d9d8acae0
778 changed files with 165107 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
namespace Wizard.Battle;
public interface IBattleCardUniqueID
{
bool IsPlayer { get; }
int Index { get; }
}

View File

@@ -0,0 +1,14 @@
using Wizard.Battle.Card.InnerOptions;
using Wizard.Battle.Player.Emotion;
using Wizard.Battle.View;
namespace Wizard.Battle;
public interface IInnerOptionsBuilder
{
IPlayerEmotion CreatePlayerEmotion(IClassBattleCardView classCardView);
IEmotion CreateEnemyEmotion(IClassBattleCardView classCardView);
CardInnerOptionsBase CreateCardOptions();
}

View File

@@ -0,0 +1,160 @@
using System.Collections.Generic;
namespace Wizard.Battle;
public interface IReadOnlyBattleCardInfo : IBattleCardUniqueID
{
CardParameter BaseParameter { get; }
List<CardBasePrm.TribeType> Tribe { get; }
CardBasePrm.ClanType Clan { get; }
int CardId { get; }
int Cost { get; }
int BaseCost { get; }
int PlayedCost { get; }
int LastCost { get; }
int Atk { get; }
int Life { get; }
int MaxLife { get; }
int ChantCount { get; }
int SpellChargeCount { get; }
int SkillActivatedCount { get; }
int ThisTurnSkillActivatedCount { get; }
List<BattleCardBase.SkillActivationInfo> SkillActivationList { get; }
ISkillApplyInformation SkillApplyInformation { get; }
bool IsEvolution { get; }
bool IsDead { get; }
bool IsLifeZeroDead { get; }
bool IsInplay { get; }
bool IsInHand { get; }
bool IsInDeck { get; }
bool IsReanimate { get; }
int DestroyedTurn { get; }
bool IsDestroySelfTurn { get; }
List<BattleCardBase.DestroyedBySkillInfo> DestroyedBySkillList { get; }
BattleCardBase.DeathTypeInformation DeathTypeInfo { get; }
BattleCardBase.BanishInfo BanishedInfo { get; }
SkillBase DiscardedSkill { get; }
SkillBase ReturnedSkill { get; }
bool IsSelfTurn { get; }
bool IsClass { get; }
bool IsUnit { get; }
bool IsSpell { get; }
bool IsField { get; }
bool IsChantField { get; }
bool HasSpellCharge { get; }
bool HasAnySkill { get; }
int FixedUseCost { get; }
List<int> UseCostList { get; }
bool HasSkillFixedUseCost { get; }
bool HasSkillAccelerate { get; }
bool HasSkillEnhance { get; }
bool HasSkillCrystallize { get; }
bool HasSkillDestroyWhiteRitual { get; }
bool HasSkillStackWhiteRitual { get; }
int AttackableCount { get; }
int MaxAttackableCount { get; }
int ExecutedFixedUseCostIndex { get; }
bool IsExecutedEarthRite { get; }
bool IsSkillLost { get; }
bool HasSkillWhenDestroy { get; }
bool HasWhenAttack { get; }
bool HasWhenFight { get; }
bool HasUnionBurst { get; }
bool HasSkyboundArt { get; }
bool HasSuperSkyboundArt { get; }
bool HasSkillBurialRite { get; }
bool HasSkillReanimate { get; }
bool HasSkillFusion { get; }
bool HasSkillWhenEvolve { get; }
bool IsCantActivateFanfare { get; }
BattleCardBase.ItWasDamagedCounter DamagedCounter { get; }
BattleCardBase.TransformInformation TransformInfo { get; }
int PlayedTurn { get; }
int DrawTurn { get; }
List<BattleCardBase> FusionIngredients { get; }
int FusionedTurn { get; }
List<BattleCardBase> GetOnCards { get; }
List<BattleCardBase> GetOffCards { get; }
BattleCardBase MetamorphoseCard { get; }
BattleCardBase FinalMetamorphoseCard { get; }
BattlePlayerBase SelfBattlePlayer { get; }
BattlePlayerBase OpponentBattlePlayer { get; }
bool IsTribe(CardBasePrm.TribeType tribe);
bool HasSkillWhenPlay(bool isOnlyNoSelect);
}