bl_save

Crates.iobl_save
lib.rsbl_save
version0.2.0
sourcesrc
created_at2019-04-14 23:57:00.570676
updated_at2019-04-19 06:33:27.429172
descriptionRead Blockland save files.
homepage
repositoryhttps://github.com/brickadia/bl_save
max_upload_size
id127996
size18,284
(qoh)

documentation

README

bl_save on crates.io bl_save on docs.rs

A library for reading Blockland save files. Generally tries to work around format errors like Blockland does.

Create a Reader from a BufRead source to read the save metadata and iterate over its bricks.

let file = BufReader::new(File::open("House.bls")?);
let reader = bl_save::Reader::new(file)?;

for line in reader.description() {
    println!("{}", line);
}

assert_eq!(reader.colors().len(), 64);
println!("Brick count: {}", reader.brick_count());

for brick in reader {
    let brick = brick?;
}
Commit count: 5

cargo fmt