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.
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.

Enums§

DialogueEvent
Events emitted by crate::Runner one at a time via crate::Runner::next_event.

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).