Struct tiled::Map
[−]
[src]
pub struct Map { 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 object_groups: Vec<ObjectGroup>, pub properties: Properties, pub background_colour: Option<Colour>, }
All Tiled files will be parsed into this. Holds all the layers and tilesets
Fields
version: String
orientation: Orientation
width: u32
height: u32
tile_width: u32
tile_height: u32
tilesets: Vec<Tileset>
layers: Vec<Layer>
object_groups: Vec<ObjectGroup>
properties: Properties
background_colour: Option<Colour>
Methods
impl Map
[src]
fn get_tileset_by_gid(&self, gid: u32) -> Option<&Tileset>
This function will return the correct Tileset given a GID.