dfhack-remote 0.12.0

Interacting with the Dwarf Fortress remote API exposed by DFHack
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    let mut client = dfhack_remote::connect().unwrap();
    let world_info = client.core().get_world_info().unwrap();
    let world_name = world_info.world_name.as_ref().unwrap();

    println!(
        "Welcome to {} ({})",
        world_name.last_name(),
        world_name.english_name()
    );
}