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.

N extends Neighborhood = Neighborhood

new KindBlueprint<N>(context, automaton, kind): KindBlueprint<N>

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

BlueprintContext

Automaton

Kind

KindBlueprint<N>

RefBlueprint.constructor

id: number

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<N>

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.

ElementBlueprint<Neighborhood> | Neighbor<N>

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

RuleBlueprint<N>

A RuleBlueprint for chaining conditions.

RefBlueprint.to