updating test maps
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user