[−][src]Function tiled::parse_tileset
pub fn parse_tileset<R: Read>(
reader: R,
first_gid: u32
) -> Result<Tileset, TiledError>
Parse a buffer hopefully containing the contents of a Tiled tileset.
External tilesets do not have a firstgid attribute. That lives in the
map. You must pass in first_gid
. If you do not need to use gids for anything,
passing in 1 will work fine.