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