gave up and limited recursion depth

This commit is contained in:
2026-08-15 14:00:23 -05:00
parent 56f0a1b385
commit 1fa47f6418
6 changed files with 110 additions and 14 deletions
+8 -2
View File
@@ -26,6 +26,12 @@ pub struct Portal {
pub target_board: String,
/// Name of the arrival portal on the target board.
pub target_name: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub glyph: Option<Glyph>
/// Visual representation of this portal. Omitted from a map file, it
/// defaults to [`Glyph::portal`] — `≡`, black on white — so portals are
/// visible unless the author opts out with `tile = 0` (the transparent
/// sentinel). Unlike sensors (which are glyphless by default), a portal
/// sits on a transparent grid cell and this glyph is what
/// [`Board::glyph_at`](crate::board::Board::glyph_at) draws for it.
#[serde(default = "Glyph::portal", skip_serializing_if = "Glyph::is_portal_default")]
pub glyph: Glyph
}