Crates.io | bl_save |
lib.rs | bl_save |
version | 0.2.0 |
source | src |
created_at | 2019-04-14 23:57:00.570676 |
updated_at | 2019-04-19 06:33:27.429172 |
description | Read Blockland save files. |
homepage | |
repository | https://github.com/brickadia/bl_save |
max_upload_size | |
id | 127996 |
size | 18,284 |
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?;
}