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: TileLayerGroup(GroupLayer)A layer grouping mutiple other layer together. Group Layers may be nested, forming a tree of layers.
Tuple Fields of Group
0: GroupLayerObject(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