Struct tego::TileLayer[][src]

pub struct TileLayer {
    pub id: usize,
    pub name: String,
    pub size: ivec2,
    pub tiles: Vec<Option<GID>>,
}

Fields

id: usizename: Stringsize: ivec2tiles: Vec<Option<GID>>

Implementations

Iterate over the tiles inside of this layer in the order in which they would be rendered. See Map::renderorder. This iterator yields the GID and xy coordinates of the tiles in the layer, with a None GID for empty tiles.

Panics

At the moment, this function is only implemented for a renderorder of RightDown. Other render orders result in a panic.

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 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.