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:
@@ -0,0 +1,40 @@
|
||||
using Wizard.Battle.View;
|
||||
|
||||
namespace Wizard.Battle.Card.InnerOptions;
|
||||
|
||||
public class PlayerCardInnerOptions : CardInnerOptionsBase
|
||||
{
|
||||
public override bool CheckMovable(IBattlePlayerView selfPlayerBattleView, IBattleCardView selfBattleCardView, bool isOnDraw, bool isSkipSelecting, bool isRecording)
|
||||
{
|
||||
if (selfPlayerBattleView == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!base.CheckMovable(selfPlayerBattleView, selfBattleCardView, isOnDraw, isSkipSelecting, isRecording))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (isRecording)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
BattlePlayerView battlePlayerView = (BattlePlayerView)selfPlayerBattleView;
|
||||
if (battlePlayerView.IsSelecting && !isSkipSelecting)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (battlePlayerView.IsMoving())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (isOnDraw)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (selfPlayerBattleView.PlayQueueView.IsCardInQueue(selfBattleCardView))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user