-
Notifications
You must be signed in to change notification settings - Fork 0
IDeck
IDeck is an interface that defines one of the decks that makes up an overall decklist for a Game Format. (e.g. Main Deck, Side Deck, Extra Deck)
| Property Name | Type | Description |
|---|---|---|
| Name | string | A Short Name for your Deck. This is used for saving Deck Files. |
| Label | string | The text that shows up on the Deckbuilding Window. |
| ExpectedDeckSize | int | Not currently implemented, but is meant to determine how large a Deck will be normally. (e.g. 49-card Deck, 50-card Deck) |
IDeck.ValidateAdd(DeckBuilderCard, IEnumerable<DeckBuilderCard>);
Returns a Boolean value indicating whether a card can be added to the existing Deck Instance based on the cards that belong to the Deck Instance.
public IGamePluginBase.IDeck ValidateAdd(DeckBuilderCard card, IEnumerable<DeckBuildercard> deckcard DeckBuilderCard
The card that is being confirmed as to whether it can be added to the current Deck.
deck IEnumerable<DeckBuilderCard>
A list of cards in the Deck Instance retrieved from the Deck Builder Application.
Boolean
Returns TRUE if the card can be added to the Deck.
The Method should only determine information based on the Deck itself, it should not validate any Card Restrictions related to the whole decklist as it is not possible to. Examples of what can be validated is the size of the Deck itself (e.g. only 50 cards, not having any cards, having specific cards).
IDeck.ValidateDeck(IEnumerable<DeckBuilderCard>);
Provides a list of Error Messages with the existing Decklist for this Deck Instance.
public IGamePluginBase.IDeck ValidateDeck(IEnumerable<DeckBuildercard> deckdeck IEnumerable<DeckBuilderCard>
A list of cards in the Deck Instance retrieved from the Deck Builder Application.
String[]
An array of Error Messages detailing the errors existing in the current Deck.
The Method should only determine information based on the Deck itself, it should not validate any Card Restrictions related to the whole decklist as it is not possible to. Examples of what can be validated is the size of the Deck itself (e.g. only 50 cards, not having any cards, having specific cards).