Expand description
Runtime execution layer: Runner and DialogueEvent.
Structs§
- Dialogue
Option - An option presented to the player.
- Hash
MapProvider - A simple in-memory provider backed by a
std::collections::HashMap. - Markup
Span - A resolved inline markup span: a named annotation over a byte range in the stripped display text.
- Passthrough
Provider - A no-op provider that always returns
None(source text is used unchanged). - Runner
- Drives execution of a compiled
Program, yieldingDialogueEvents one at a time. - Runner
Builder - Builds a
Runnerwith optional saliency, provider, and host-function configuration in a single fluent chain. - Runner
Snapshot - A point-in-time snapshot of the dialogue session’s mutable state.
Enums§
- Dialogue
Event - Events emitted by
crate::Runnerone at a time viacrate::Runner::next_event. - Line
Mode - How a
DialogueEvent::Lineshould be treated for display or logging. - Runner
Phase - Where the
Runneris in itsstart/next_event/Runner::select_optionprotocol.
Traits§
- Line
Provider - Supplies localised (or otherwise substituted) text for a line.
Functions§
- eval
- Evaluate an
ExprAST node usingstoragefor variable reads andfnsfor function calls. - line_
id_ from_ tags - Returns the id from a
#line:<id>tag intags, if any (first match wins). - line_
mode_ from_ tags - Derives
LineModefrom trailing#tagstrings (without the#prefix). - option_
group_ from_ tags - Returns the group from a
#group:<name>tag intags, if any (first match wins).