diff --git a/src/lib.rs b/src/lib.rs index 4dc8c8923e8ec4231220fac9d4867206ef565d6f..08503bb6fc8fa88eee67d0a5efbfaaf4033e59dc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -339,6 +339,17 @@ impl FromStr for Orientation { } } +impl Display for Orientation { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + Orientation::Orthogonal => write!(f, "orthogonal"), + Orientation::Isometric => write!(f, "isometric"), + Orientation::Staggered => write!(f, "staggered"), + Orientation::Hexagonal => write!(f, "hexagonal"), + } + } +} + /// A tileset, usually the tilesheet image. #[derive(Debug, PartialEq, Clone)] pub struct Tileset {