Files
SVSimServer/SVSim.BattleEngine/Engine/Wizard.Battle.Operation/EvolveOperationCommand.cs
gamer147 824309ec44 feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the
AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed
the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
2026-06-05 20:30:59 -04:00

34 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using LitJson;
using Wizard.Battle.View.Vfx;
namespace Wizard.Battle.Operation;
public class EvolveOperationCommand : SkillOperationCommandBase
{
public EvolveOperationCommand(JsonData actionJsonData)
: base(actionJsonData)
{
}
public override void Operation(BattleManagerBase battleMgr)
{
BattleCardBase battleCardBase = battleMgr.GetBattlePlayer(_cardInfo.IsPlayer).InPlayCards.SingleOrDefault((BattleCardBase c) => c.Index == _cardInfo.Index);
if (battleCardBase == null)
{
throw new Exception("場に " + _cardInfo.Name + " が見つかりませんでした");
}
SetupSkillSummon();
VfxWith<List<BattleCardBase>> skillSelectedCardsWithVfx = GetSkillSelectedCardsWithVfx(battleCardBase, isEvolution: true);
VfxBase vfx = battleMgr.OperateMgr.EvolutionCard(battleCardBase, _cardInfo.IsPlayer, skillSelectedCardsWithVfx.Value);
battleMgr.VfxMgr.RegisterSequentialVfx(vfx);
}
public override string ToString()
{
return "Operation evolve " + _cardInfo.Name;
}
}