Struct yarn_spool::YarnEngine[][src]

pub struct YarnEngine { /* fields omitted */ }

The engine that stores all conversation-related state.

Methods

impl YarnEngine
[src]

Create a new YarnEngine instance associated with the given handler.

Parse the provided string as a series of Yarn nodes, appending the results to the internal node storage. Returns Ok if parsing succeeded, Err otherwise.

Register a native function for use in Yarn expressions.

Set a given variable to the provided value. Any Yarn expressions evaluated after this call will observe the new value when using the variable.

Begin evaluating the provided Yarn node.

Make a choice between a series of options for the current Yarn node's active step. Execution will resume immediately based on the choice provided.

Resume execution of the current Yarn node.

Auto Trait Implementations

impl !Send for YarnEngine

impl !Sync for YarnEngine