bl_save 0.2.0

Read Blockland save files.
Documentation
  • Coverage
  • 100%
    17 out of 17 items documented1 out of 1 items with examples
  • Size
  • Source code size: 17.91 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.92 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Brickadia/bl_save
    3 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • qoh

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?;
}