Struct ogmo3::level::GridLayer[][src]

pub struct GridLayer {
    pub name: String,
    pub export_id: String,
    pub offset_x: f32,
    pub offset_y: f32,
    pub grid_cell_width: i32,
    pub grid_cell_height: i32,
    pub grid_cells_x: i32,
    pub grid_cells_y: i32,
    pub data: GridLayerStorage,
}
Expand description

A grid layer.

Fields

name: String

The name of the layer.

export_id: String

The unique export ID of the entity.

offset_x: f32

The layer’s offset on the X axis.

offset_y: f32

The layer’s offset on the Y axis.

grid_cell_width: i32

The width of the layer’s grid cells.

grid_cell_height: i32

The height of the layer’s grid cells.

grid_cells_x: i32

The number of grid cells on the X axis.

grid_cells_y: i32

The number of grid cells on the Y axis.

data: GridLayerStorage

The grid data.

You may want to use the unpack method rather than accessing this directly.

Implementations

Unpack the grid data from the layer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.