[][src]Struct ogmo3::level::TileCoordsLayer

pub struct TileCoordsLayer {
    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 tileset: String,
    pub data: TileCoordsLayerStorage,
}

A tile co-ords 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.

tileset: String

The name of the tileset used for this layer.

data: TileCoordsLayerStorage

The tile data.

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

Implementations

impl TileCoordsLayer[src]

pub fn unpack(&self) -> impl Iterator<Item = TileCoords> + '_[src]

Unpack the tile data from the layer.

Trait Implementations

impl Clone for TileCoordsLayer[src]

impl Debug for TileCoordsLayer[src]

impl<'de> Deserialize<'de> for TileCoordsLayer[src]

impl Serialize for TileCoordsLayer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.