Skip to content
Snippets Groups Projects
Commit 8edbb661 authored by Matthew Hall's avatar Matthew Hall
Browse files

Merge pull request #15 from hegza/master

Edited orientation keywords to be compatible with Tiled 0.14.2
parents d3aceeaf 070d5103
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,8 @@ impl Map {
pub enum Orientation {
Orthogonal,
Isometric,
Staggered
Staggered,
Hexagonal
}
impl FromStr for Orientation {
......@@ -233,7 +234,8 @@ impl FromStr for Orientation {
match s {
"orthogonal" => Ok(Orientation::Orthogonal),
"isometric" => Ok(Orientation::Isometric),
"Staggered" => Ok(Orientation::Staggered),
"staggered" => Ok(Orientation::Staggered),
"hexagonal" => Ok(Orientation::Hexagonal),
_ => Err(ParseTileError::OrientationError)
}
}
......
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