dialogos 0.1.1

A super simple dialogue system for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use dialogos::*;

fn main() {
    let momo = |cont| text("Momo", cont);

    let mut d = Dialogue::new(vec![
        momo("Hello world."),
        momo("Something something."),
        end(),
        momo("The end."),
    ]);

    while !d.has_end() {
        let line = d.line();
        println!("{}: {}", line.info, line.cont);
        d.next();
    }
}