Skip to content

KindBlueprint

Defined in: blueprint/ref-blueprint.ts:76

Blueprint for a kind. Returned by vivarium().kind(). Use to() to define shared rules for all elements extending this kind.

new KindBlueprint(context, automaton, kind): KindBlueprint

Defined in: blueprint/ref-blueprint.ts:80

BlueprintContext

Automaton

Kind

KindBlueprint

RefBlueprint.constructor

id: string

Defined in: blueprint/ref-blueprint.ts:78

RefBlueprint.id


name: string

Defined in: blueprint/ref-blueprint.ts:13

RefBlueprint.name


type: "kind"

Defined in: blueprint/ref-blueprint.ts:77

RefBlueprint.type

to(elementBlueprintOrNeighbor): RuleBlueprint

Defined in: blueprint/ref-blueprint.ts:33

Creates a new rule that transitions cells of this element (or kind) to another element or neighbor reference.

The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).

AnyNeighbor | ElementBlueprint

RuleBlueprint

A RuleBlueprint for chaining conditions.

RefBlueprint.to