[][src]Trait grue::dialogue::NodeEvents

pub trait NodeEvents {
    fn on_visit(&self, dlg: &Dialogue, node_ref: NodeRef) { ... }
fn on_text(&self, dlg: &Dialogue, id: NodeId, text: &str) { ... }
fn on_choice(
        &self,
        dlg: &Dialogue,
        node_ref: NodeRef,
        text: &str,
        choices: &[NodeId]
    ) -> Option<NodeId> { ... }
fn on_set(&self, dlg: &Dialogue, key: &str, value: &str) { ... }
fn on_get(&self, dlg: &Dialogue, key: &str) -> Option<String> { ... } }

Provided methods

fn on_visit(&self, dlg: &Dialogue, node_ref: NodeRef)

fn on_text(&self, dlg: &Dialogue, id: NodeId, text: &str)

fn on_choice(
    &self,
    dlg: &Dialogue,
    node_ref: NodeRef,
    text: &str,
    choices: &[NodeId]
) -> Option<NodeId>

fn on_set(&self, dlg: &Dialogue, key: &str, value: &str)

fn on_get(&self, dlg: &Dialogue, key: &str) -> Option<String>

Loading content...

Implementors

Loading content...