Skip to content

brickadia/bl_save

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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

for brick in reader {
    let brick = brick?;
}

Releases

No releases published

Packages

No packages published

Languages