added basic laod save functionality

This commit is contained in:
grimsace
2026-04-20 10:23:49 -05:00
parent ca6e89dc45
commit c82c1f2b20
5 changed files with 97 additions and 11 deletions
+1 -1
View File
@@ -529,7 +529,7 @@ fn raster_target_size(settings: &UiSettings) -> (u32, u32) {
}
// Build an SVG document for the current layout.
fn build_svg(layout: &DungeonLayout, settings: &UiSettings) -> String {
pub fn build_svg(layout: &DungeonLayout, settings: &UiSettings) -> String {
let g = ExportGeometry::new(settings.cols, settings.rows);
let wall_w = (g.cell / 5.0).max(1.0);
let door_w = (g.cell / 10.0).max(1.0);