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 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: Stringorientation: Orientationwidth: u32height: u32tile_width: u32tile_height: u32tilesets: Vec<Tileset>layers: Vec<Layer>image_layers: Vec<ImageLayer>object_groups: Vec<ObjectGroup>properties: Propertiesbackground_colour: Option<Colour>infinite: bool

Implementations

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

impl Clone for Map[src]

impl Debug for Map[src]

impl PartialEq<Map> for Map[src]

impl StructuralPartialEq for Map[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.