[][src]Struct ogmo3::level::Layer

pub struct Layer {
    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: LayerData,
}

A layer instance.

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: LayerData

Data specific to certain layer types.

Trait Implementations

impl Clone for Layer[src]

impl Debug for Layer[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Layer

impl Send for Layer

impl Sync for Layer

impl Unpin for Layer

impl UnwindSafe for Layer

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.