updating test maps

This commit is contained in:
2026-08-04 22:56:05 -05:00
parent ab5f22fe76
commit 30e09a40c4
4 changed files with 46 additions and 12 deletions
+4
View File
@@ -116,6 +116,10 @@ impl Glyph {
pub const fn is_visible(&self) -> bool {
self.tile != '\0'
}
pub fn is_transparent(&self) -> bool {
self == &Self::transparent()
}
}
/// The `tile` value for a glyph that draws nothing — the `serde` default, used
+1
View File
@@ -215,6 +215,7 @@ pub struct SensorSpec {
pub y: usize,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub script: Option<String>,
#[serde(default, skip_serializing_if = "Glyph::is_transparent")]
pub glyph: Glyph,
#[serde(flatten, default)]
pub optics: Optics,