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 images: Vec<Image>,
    pub tiles: Vec<Tile>,
}

A tileset, usually the tilesheet image.

Fields

first_gid: u32

The GID of the first tile stored

name: String tile_width: u32 tile_height: u32 spacing: u32 margin: 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>

Trait Implementations

impl Eq for Tileset
[src]

impl PartialEq for Tileset
[src]

fn eq(&self, __arg_0: &Tileset) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Tileset) -> bool

This method tests for !=.

impl Debug for Tileset
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.