[][src]Crate bl_save

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

Structs

Brick

A single brick in a save file, including extended attributes.

BrickBase

Basic brick data excluding extended attributes such as owner, events, etc.

Reader

Reads save files.