massive commenting pass to explain random functions and their purpose

This commit is contained in:
grimsace
2026-05-18 10:30:59 -05:00
parent ab713a5a4f
commit c71cc73406
21 changed files with 229 additions and 0 deletions
+2
View File
@@ -19,6 +19,7 @@ pub struct DungeonSave {
pub svgs: Vec<String>,
}
// Saves dungeon state to a user-selected JSON file.
pub fn save_dungeon(
settings: &UiSettings,
layouts: Vec<DungeonLayout>,
@@ -45,6 +46,7 @@ pub fn save_dungeon(
Ok(path)
}
// Loads dungeon state from a user-selected JSON file.
pub fn load_dungeon() -> Result<DungeonSave, String> {
let path = FileDialog::new()
.set_title("Load Dungeon State")