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.
This commit is contained in:
24
SVSim.BattleEngine/Engine/Wizard/AIBurialUtility.cs
Normal file
24
SVSim.BattleEngine/Engine/Wizard/AIBurialUtility.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public static class AIBurialUtility
|
||||
{
|
||||
public static bool IsBurialRite(AISituationInfo situation, List<AIScriptTokenBase> filters, AIVirtualField field)
|
||||
{
|
||||
AISelectedTargetInfo burialRiteTarget = situation.GetBurialRiteTarget();
|
||||
if (burialRiteTarget == null || burialRiteTarget.Type != TargetSelectType.BurialRite || !burialRiteTarget.HasTarget)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
List<AIVirtualCard> targets = burialRiteTarget.Targets;
|
||||
for (int i = 0; i < targets.Count; i++)
|
||||
{
|
||||
if (AIFilteringUtility.CheckMatchTargetFiltering(targets[i], field.AllyHandCards, filters, null, situation.Actor, situation))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user