cyoa-core
    Preparing search index...

    Class StoryEngine

    Headless story state machine. Holds no rendering concerns — cyoa-react (or any other consumer) drives its UI off currentNode/availableChoices and calls choose() in response to user input.

    Index
    • Navigates to the previous node for re-reading. Variables are intentionally NOT reverted — back() is narrative "go re-read" navigation, not a state undo.

      Returns void

    • Advances to currentNode.choices[choiceIndex], applying its effects then the target node's onEnter effects.

      Parameters

      • choiceIndex: number

      Returns void