Struct tiled::Map [−][src]
pub struct Map {}Show fields
pub version: String, pub orientation: Orientation, pub width: u32, pub height: u32, pub tile_width: u32, pub tile_height: u32, pub tilesets: Vec<Tileset>, pub layers: Vec<Layer>, pub image_layers: Vec<ImageLayer>, pub object_groups: Vec<ObjectGroup>, pub properties: Properties, pub background_colour: Option<Colour>, pub infinite: bool,
All Tiled files will be parsed into this. Holds all the layers and tilesets
Fields
version: String
orientation: Orientation
width: u32
Width of the map, in tiles
height: u32
Height of the map, in tiles
tile_width: u32
tile_height: u32
tilesets: Vec<Tileset>
layers: Vec<Layer>
image_layers: Vec<ImageLayer>
object_groups: Vec<ObjectGroup>
properties: Properties
background_colour: Option<Colour>
infinite: bool
Implementations
impl Map
[src]
impl Map
[src]pub fn get_tileset_by_gid(&self, gid: u32) -> Option<&Tileset>
[src]
This function will return the correct Tileset given a GID.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Map
impl RefUnwindSafe for Map
impl UnwindSafe for Map
impl UnwindSafe for Map