gave up and limited recursion depth
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user