Skip to main content

Crate multilinear_story

Crate multilinear_story 

Source
Expand description

Game-facing story runtime over a multilinear net.

Loads a multilinear net (.mld: aspect defaults before the first header, then events) together with a presentation wiring file, then routes the currently callable events to their owners and reads aspect state. This is the shared substrate behind the “callable-events-as-options” pattern: an interactable’s options are the callable events wired to it, applying one is a transition, and the net re-derives availability on its own.

# events
## bibo talk
owner bibo
dialog bibo_talk

# idle
## bibo
dialog bibo_idle

The wiring is header-based (via header-parsing): event names are header segments, so they may contain whitespace. Each wired event must exist in the net or loading fails.

Structs§

Aspect
Represents an aspect in the multilinear system.
Event
Represents an event in the multilinear system.
Presentation
The presentation wired to an event: which interactable surfaces it, and which dialog to play.
Story
A loaded story: the net simulation plus its name maps and presentation wiring.

Enums§

LoadError
An error while loading a story.