Enum tego::Layer[][src]

pub enum Layer {
    Tile(TileLayer),
    Group(GroupLayer),
    Object(ObjectLayer),
}
Expand description

This enum contains the different types of layers that can be found in a map

Variants

Tile(TileLayer)

A layer containing a grid of tiles

Tuple Fields of Tile

0: TileLayer
Group(GroupLayer)

A layer grouping mutiple other layer together. Group Layers may be nested, forming a tree of layers.

Tuple Fields of Group

0: GroupLayer
Object(ObjectLayer)

A layer containing objects. Objects are not aligned to the tile grid. They can be used for example to mark regions of interest.

Object layers are also called object groups.

Tuple Fields of Object

0: ObjectLayer

Implementations

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.