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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KindBlueprint(
context,automaton,kind):KindBlueprint
Defined in: blueprint/ref-blueprint.ts:80
Parameters
Section titled “Parameters”context
Section titled “context”BlueprintContext
automaton
Section titled “automaton”Automaton
Kind
Returns
Section titled “Returns”KindBlueprint
Overrides
Section titled “Overrides”Properties
Section titled “Properties”id:
string
Defined in: blueprint/ref-blueprint.ts:78
Overrides
Section titled “Overrides”name:
string
Defined in: blueprint/ref-blueprint.ts:13
Inherited from
Section titled “Inherited from”type:
"kind"
Defined in: blueprint/ref-blueprint.ts:77
Overrides
Section titled “Overrides”Methods
Section titled “Methods”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.
Parameters
Section titled “Parameters”elementBlueprintOrNeighbor
Section titled “elementBlueprintOrNeighbor”The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).
AnyNeighbor | ElementBlueprint
Returns
Section titled “Returns”A RuleBlueprint for chaining conditions.