Struct brickadia::save::SaveData [−][src]
pub struct SaveData {
pub version: u16,
pub game_version: i32,
pub header1: Header1,
pub header2: Header2,
pub preview: Preview,
pub bricks: Vec<Brick>,
pub components: HashMap<String, Component>,
}
Expand description
Every part of a save file.
Fields
version: u16
The version of the save. Only relevant for reads; this automatically uses SAVE_VERSION
when writing.
game_version: i32
The game version the save was saved on.
header1: Header1
The first header of the save.
header2: Header2
The second header of the save.
preview: Preview
The preview of the save, if any.
bricks: Vec<Brick>
The bricks in the save.
components: HashMap<String, Component>
The components in the save.
Implementations
Convert this SaveData
into a SaveOctree
for quick traversal of bricks in space.