Skip to content

ChosenDefaults beta ​

Interface of @v12-engine/engine

ts
export interface ChosenDefaults

The default sets a game took, kept with its rules (Rules.defaults): the sets, what was chosen of each, and what they added to the rules by field (ids; packs by pack id), so that a choice made again takes it out first

Members ​

added ​

ts
readonly added: Readonly<Record<string, readonly string[]>>;

What they put in the rules, by field (items, abilities, packs…), by id

chosen ​

ts
readonly chosen: Readonly<Record<string, AnySetChoice>>;

What was chosen of each, by set id

sets ​

ts
readonly sets: readonly DefaultSet<{
        id: string;
    }>[];

The sets, by their order of taking

units ​

ts
readonly units?: Rules['units'];

The game's unit types before what it did not take of the sets came off their shops and loot, where something did