Card Effect Commons ‐ Reveal Library - DCGO2/DCGO-Card-Scripts GitHub Wiki

Reveal cards from top of deck and perform a process for all of them

public static IEnumerator RevealDeckTopCardsAndProcessForAll(
int revealCount,
SimplifiedSelectCardConditionClass simplifiedSelectCardCondition,
RemainingCardsPlace remainingCardsPlace,
ICardEffect activateClass,
Func<List<CardSource>, IEnumerator> revealedCardsCoroutine = null,
List<CardSource> refSelectedCards = null,
bool isOpponentDeck = false)
  • revealCount - how many cards to reveal
  • simplifiedSelectCardCondition - Class referencing how things are revealed/selectable
  • remainingCardsPlace - Enum on what to do with the remaining cards revealed (Deck bottom, deck top, deck top/bottom, trash, hand, none)
  • activateClass - reference to the effect that triggered this
  • revealedCardsCoroutine - Coroutine used for doing something custom with the revealed cards
  • refSelectedCards - List reference of the revealed selected (not used by effects)
  • isOpponentDeck - is the deck reveal from opponents deck (default is false) - Optional

Reveal cards from the top of deck and select them

public static IEnumerator SimplifiedRevealDeckTopCardsAndSelect(
int revealCount,
SimplifiedSelectCardConditionClass[] simplifiedSelectCardConditions,
RemainingCardsPlace remainingCardsPlace,
ICardEffect activateClass,
Func<List<CardSource>, CardSource, bool> canTargetCondition_ByPreSelecetedList = null,
Func<List<CardSource>, bool> canEndSelectCondition = null,
bool canNoSelect = false,
bool canEndNotMax = false,
bool isSendAllCardsToSamePlace = false,
bool isOpponentDeck = false,
Func<List<CardSource>, IEnumerator> revealedCardsCoroutine = null)
  • revealCount - how many cards to reveal
  • simplifiedSelectCardConditions - list of classes referencing how things are revealed/selectable
  • remainingCardsPlace - Enum on what to do with the remaining cards revealed (Deck bottom, deck top, deck top/bottom, trash, hand, none)
  • activateClass - reference to the effect that triggered this
  • canTargetCondition_ByPreSelecetedList - Func that filters the available selectable options based on past selections
  • canEndSelectCondition - conditions to be met in order to end selection early
  • canNoSelect - can you not perform a selection (default is false) - Optional
  • canEndNotMax - can you end selection early (default is false) - Optional
  • isSendAllCardsToSamePlace - should all cards revealed be sent to same place (default is false) - Optional
  • isOpponentDeck - is the deck reveal from opponents deck (default is false) - Optional
  • revealedCardsCoroutine - Coroutine used for doing something custom with the revealed cards (default is null) - Optional
⚠️ **GitHub.com Fallback** ⚠️