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
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for GridLayer
impl UnwindSafe for GridLayer
Blanket Implementations
Mutably borrows from an owned value. Read more