UNPKG

@flesh-and-blood/types

Version:

TypeScript representations of Flesh and Blood card types

72 lines (71 loc) 2.1 kB
import { Class, Hero, Rarity, Release, Talent } from "./interfaces"; export declare enum Language { English = "English", French = "Fran\u00E7ais", German = "Deutsch", Italian = "Italiano", Japanese = "\u65E5\u672C\u8A9E", Spanish = "Espa\u00F1ol" } export declare enum ReleaseType { ArmoryDeck = "Armory Deck", BlitzDeck = "Blitz Deck", BoxSet = "Box Set", ClassicBattles = "Classic Battles", ExpansionBooster = "Expansion Booster", FirstStrike = "1st Strike", HistoryPack = "History Pack", MasteryPack = "Mastery Pack", RoundTheTable = "Round the Table", SilverAgeDeck = "Silver Age Deck", StandaloneBooster = "Standalone Booster", WelcomeDeck = "Welcome Deck" } export declare const getIsBooster: (releaseType: ReleaseType) => boolean; export declare const getIsReprint: (releaseType: ReleaseType) => boolean; export declare const getIsDraftable: (releaseType: ReleaseType) => boolean; export declare const getIsPreconstructed: (releaseType: ReleaseType) => boolean; interface DeckLink { name?: string; url: string; } interface DraftInfo { heroIdentifiers: string[]; picksPerPack: number; } export interface ReleaseInfo { cards: number; classes: Class[]; deckLinks: DeckLink[]; draft?: DraftInfo; heroes: Hero[]; heroOverrides?: { [key: string]: Hero; }; languages: Language[]; raritiesExcludedInLimited?: Rarity[]; relatedReleases: Release[]; release: Release; releaseDate: string; releaseType: ReleaseType; setIdentifiers: string[]; talents: Talent[]; } export declare const releases: ReleaseInfo[]; export declare const fullSetIdentifiers: { [key: string]: Release; }; export declare const setIdentifierToSetMappings: { [key: string]: Release; }; export declare const setToSetIdentifierMappings: { [key: string]: string[]; }; export interface SilverAgeChapter { chapter: number; name: string; relatedReleases: Release[]; releaseDate: string; } export declare const silverAgeChapters: SilverAgeChapter[]; export {};