Struct twmap::TilesLayer[][src]

pub struct TilesLayer {
    pub name: String,
    pub detail: bool,
    pub color: Color,
    pub color_env: Option<u16>,
    pub color_env_offset: i32,
    pub image: Option<u16>,
    pub tiles: CompressedData<Array2<Tile>, TilesLoadInfo>,
    pub auto_mapper: AutoMapper,
}

Fields

name: Stringdetail: boolcolor: Colorcolor_env: Option<u16>color_env_offset: i32image: Option<u16>tiles: CompressedData<Array2<Tile>, TilesLoadInfo>auto_mapper: AutoMapper

Implementations

impl TilesLayer[src]

pub fn new(shape: (usize, usize)) -> Self[src]

Creates a tiles layer with the default values and the specified dimensions.

Trait Implementations

impl AnyLayer for TilesLayer[src]

impl Clone for TilesLayer[src]

impl Debug for TilesLayer[src]

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

impl PartialEq<TilesLayer> for TilesLayer[src]

impl Serialize for TilesLayer[src]

impl StructuralPartialEq for TilesLayer[src]

impl TileMapLayer for TilesLayer[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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,