Skip to content

DefaultSet beta ​

Interface of @v12-engine/engine

ts
export interface DefaultSet<D extends {
    id: string;
} = {
    id: string;
}>

A default set of definitions: what the engine offers a game to take whole or in part (useDefaults)

Members ​

defs ​

ts
defs: readonly D[];

Its definitions, in order

description ​

ts
description?: string;

A line about it

id ​

ts
id: string;

kind ​

ts
kind: SetKind;

The field of the rules its definitions go in (items), unless it lays them its own way (lay)

lay ​

ts
lay?(rules: Rules, defs: readonly D[]): Rules;

Lays what was chosen of it in the rules, for a set that goes in no list of the rules (callings handed to a pack): the definitions chosen, all of them, in the place of what an earlier choice laid (none, to take it all out)

name ​

ts
name: string;

What the editor calls it

packs ​

ts
packs?: () => GamePack[];

The packs it needs (the stats its items give), added to a game that has none of their ids while anything of it is chosen

uses ​

ts
uses?: SetUses;

What they use besides (SetUses), taken along as they name it