Skip to content

Reference

tilttek/deck-builder
TypeRole
CardA card as the card catalog gives it: identifier, name and its own number of copies
FormatThe declared rules of a format: sizes, copies, banned and restricted cards, taboo lists; read from and written to arrays and JSON
TabooListCards banned or restricted from a day on
RulingThe rules of a format on a day: what bans or restricts a card, and its copies allowed
DeckA deck: its cards in order, its format and its original; changes by new decks; read from and written to arrays and JSON
DeckReferenceA version of a deck, the original a copy links to
DeckValidatorChecks a deck against its format on a day, and against a collection
ValidationEvery violation of a deck, with the ruling and the day
ViolationA rule a deck breaks, with its message and values
ViolationTypeThe kinds of violations
DecksSaves versions, gives the history and the differences, copies decks
DeckVersionA saved version of a deck, with its moment in UTC and its note
DeckDiffThe differences between two decks
IdentifiersThe shapes of codes, identifiers and names
Contract\CardCatalog, Contract\FormatCatalogWhere the application keeps its cards and formats
Contract\OwnedCardsThe copies of each card a collection owns
Contract\DeckStoreWhere the versions of the decks are kept
Catalog\InMemoryCardCatalog, Catalog\InMemoryFormatCatalog, Catalog\OwnedCardListThe catalogs and a collection in memory
Store\InMemoryDeckStoreThe versions of the decks in memory
Exception\DeckBuilderExceptionThe interface of every exception of the library
Exception\InvalidDeck, UnknownFormat, UnknownDeck, DeckConflictSee Exceptions

ArrayInput is internal.