protected override bool ConvertBase(object[] values, string parameter, string stateName, IEnumerable <CEOptionDescriptor> options) { CECard card = (CECard)values[2]; CEOptionDescriptor option = options.FirstOrDefault(x => x.Action == "PlayCard" && x.PlayableCard.ID == card.ID); return(option != null); }
protected override bool ConvertBase(object[] values, string parameter, string stateName, IEnumerable <CEOptionDescriptor> options) { RowResource rowResource = (RowResource)values[2]; int position = (int)values[3]; CEOptionDescriptor option = options.FirstOrDefault(x => x.Action == ProgrammingRowCommon.RowResourceAction[rowResource] && x.Position == position); return(option != null); }