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 Debug 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 Clone for Tileset
[src]
fn clone(&self) -> Tileset
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more