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
fn main() {
    let mut client = dfhack_remote::connect().unwrap();

    let status = client.remote_fortress_reader().get_pause_state().unwrap();

    client
        .remote_fortress_reader()
        .set_pause_state(!status.reply)
        .unwrap();
}