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.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.