brdb 0.5.0

A library for reading and writing Brickadia's World files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use brdb::{Brdb, Brz};
use std::path::PathBuf;

/// Reads a brz and outputs a brdb
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let src = PathBuf::from("./world.brz");
    let dst = PathBuf::from("./world.brdb");

    let pending = Brz::open(src)?.to_pending()?;
    Brdb::open(dst)?.write_pending("Import brz", pending)?;

    Ok(())
}