Struct tiled::Tileset[][src]

pub struct Tileset {
    pub first_gid: u32,
    pub name: String,
    pub tile_width: u32,
    pub tile_height: u32,
    pub spacing: u32,
    pub margin: u32,
    pub tilecount: Option<u32>,
    pub images: Vec<Image>,
    pub tiles: Vec<Tile>,
    pub properties: Properties,
}

A tileset, usually the tilesheet image.

Fields

first_gid: u32

The GID of the first tile stored

name: Stringtile_width: u32tile_height: u32spacing: u32margin: u32tilecount: Option<u32>images: Vec<Image>

The Tiled spec says that a tileset can have mutliple images so a Vec is used. Usually you will only use one.

tiles: Vec<Tile>properties: Properties

Trait Implementations

impl Clone for Tileset[src]

impl Debug for Tileset[src]

impl PartialEq<Tileset> for Tileset[src]

impl StructuralPartialEq for Tileset[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.