Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime execution layer: Runner and DialogueEvent.

Structs§

DialogueOption
An option presented to the player.
HashMapProvider
A simple in-memory provider backed by a std::collections::HashMap.
MarkupSpan
A resolved inline markup span: a named annotation over a byte range in the stripped display text.
PassthroughProvider
A no-op provider that always returns None (source text is used unchanged).
Runner
Drives execution of a compiled Program, yielding DialogueEvents one at a time.
RunnerBuilder
Builds a Runner with optional saliency, provider, and host-function configuration in a single fluent chain.

Enums§

DialogueEvent
Events emitted by crate::Runner one at a time via crate::Runner::next_event.
RunnerPhase
Where the Runner is in its start / next_event / Runner::select_option protocol.

Traits§

LineProvider
Supplies localised (or otherwise substituted) text for a line.

Functions§

eval
Evaluate an Expr AST node using storage for variable reads and fns for function calls.
line_id_from_tags
Returns the id from a #line:<id> tag in tags, if any (first match wins).