Skip to content

RefBlueprint

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

Base class for element and kind blueprints. Provides the to method for defining rules.

  • BaseBlueprint

new RefBlueprint(automaton, ref): RefBlueprint

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

Automaton

Kind | Element

RefBlueprint

BaseBlueprint.constructor

id: string

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


name: string

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


type: RefType

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

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.