Interface Knot<TEffect>

A knot is a collection of nodes that form a logical section of the story. Knots allow organizing complex stories into manageable sections.

interface Knot<TEffect> {
    entryNode: string;
    id: string;
    nodes: Record<string, Node<TEffect>>;
}

Type Parameters

  • TEffect

    The type of effects used in nodes within this knot

Properties

Properties

entryNode: string

The node ID where this knot starts

id: string

Unique identifier for this knot

nodes: Record<string, Node<TEffect>>

All nodes contained in this knot, keyed by node ID