Skip to content
Snippets Groups Projects
Unverified Commit 4b571794 authored by Matthew Hall's avatar Matthew Hall Committed by GitHub
Browse files

Merge pull request #70 from mbStavola/add-pub-to-frame

Make fields on frame pub
parents f9cf73b1 a819ff05
No related branches found
No related tags found
No related merge requests found
......@@ -439,7 +439,10 @@ impl Tileset {
fn new_external<R: Read>(file: R, first_gid: u32) -> Result<Tileset, TiledError> {
let mut tileset_parser = EventReader::new(file);
loop {
match tileset_parser.next().map_err(TiledError::XmlDecodingError)? {
match tileset_parser
.next()
.map_err(TiledError::XmlDecodingError)?
{
XmlEvent::StartElement {
name, attributes, ..
} => {
......@@ -949,8 +952,8 @@ impl Object {
#[derive(Debug, PartialEq, Clone)]
pub struct Frame {
tile_id: u32,
duration: u32,
pub tile_id: u32,
pub duration: u32,
}
impl Frame {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment