Hierarchy
Index

Constructors

Accessors

  • get cards(): CardSorted[]

    Returns CardSorted[]

    All cards for the format.

  • get dirpath(): string

    Returns the subdirectory for this collection.

    Returns string

  • get mergeMark(): Set<string>

    Returns any set of collection import file names marked for merging.

    Returns Set<string>

  • get name(): string

    Returns string

    Collection name / ID.

  • get printName(): string

    Returns string

    A printable / punctuated version of the collection name.

  • get size(): number

    Returns number

    Count of cards in this format.

Methods

  • Does this collection have a specific card category.

    Parameters

    • key: string

      CardCategory key / name.

    Returns boolean

    Whether this collection has the card category.

  • Parameters

    • options: { alpha?: boolean; type?: boolean }

      Sort options to apply.

      • Optionalalpha?: boolean

        Sort by alphabetical name.

      • Optionaltype?: boolean

        Sort by normalized type.

    Returns void