multi board

This commit is contained in:
2026-06-13 01:25:58 -05:00
parent e5c6affc41
commit 73c8a9bd3e
13 changed files with 456 additions and 445 deletions
-6
View File
@@ -41,10 +41,6 @@ pub struct MapFile {
/// Any `[[portals]]` entries. Optional; defaults to empty.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub portals: Vec<PortalDef>,
/// The `[scripts]` table: maps script names to Rhai source text.
/// Optional; defaults to empty.
#[serde(default, skip_serializing_if = "HashMap::is_empty")]
pub scripts: HashMap<String, String>,
}
/// The `[map]` header section of a map file.
@@ -570,7 +566,6 @@ impl TryFrom<MapFile> for Board {
portals: mf.portals,
font,
zoom: mf.map.zoom,
scripts: mf.scripts,
board_script_name: mf.map.board_script_name,
load_errors,
})
@@ -705,7 +700,6 @@ impl From<&Board> for MapFile {
floor: board.floor_spec.clone(),
objects,
portals,
scripts: board.scripts.clone(),
}
}
}