using System.Collections.Generic; namespace Wizard; public class AIPlayOutAction { public int UseCardIndex { get; private set; } public AIOperationType Command { get; private set; } public List TargetCardList { get; private set; } public AIPlayOutAction(AIOperationType command, BattleCardBase useCard, List targetCards) { Command = command; if (useCard != null) { UseCardIndex = useCard.Index; } else { UseCardIndex = -1; } TargetCardList = new List(); if (targetCards != null && targetCards.Count > 0) { TargetCardList.AddRange(targetCards); } } }