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

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

    Ok(())
}