Different content grids

This commit is contained in:
2026-06-16 00:01:02 -05:00
parent 4929734212
commit 50d56aa428
5 changed files with 251 additions and 82 deletions
+7 -1
View File
@@ -407,7 +407,13 @@ fn layer_to_data(board: &Board, z: usize, place_player: bool) -> LayerData {
.collect::<Vec<_>>()
.join("\n")
+ "\n";
LayerData { content, palette }
// Save always emits an explicit grid; `fill`/`sparse` are load-time conveniences.
LayerData {
content: Some(content),
fill: None,
sparse: None,
palette,
}
}
/// Converts a runtime [`Board`] back into a serializable [`MapFile`].