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.
Enums§
- Dialogue
Event - Events emitted by
crate::Runnerone at a time viacrate::Runner::next_event. - 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).