diff --git a/src/lib.rs b/src/lib.rs index 7f51c94965f6c860b92c7752ee14429f1c3df823..61418ea2065c52ee30062ba94b88ee5012adb745 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -337,6 +337,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 {