Static World Gen and Display for the Overworld #5

Merged
msrd0 merged 21 commits from overworld-house-gen into main 2024-07-06 20:23:25 +00:00
Showing only changes of commit 0f1717675f - Show all commits

View file

@ -31,7 +31,6 @@ impl AssetsWriter {
fn new<P: AsRef<Path>>(path: P) -> Self { fn new<P: AsRef<Path>>(path: P) -> Self {
let mut file = File::create(path).expect("Failed to create assets file"); let mut file = File::create(path).expect("Failed to create assets file");
writeln!(file, "// @generated").unwrap(); writeln!(file, "// @generated").unwrap();
writeln!(file, "#![allow(dead_code)]").unwrap();
Self { Self {
file, file,
root: Assets::default() root: Assets::default()
@ -77,6 +76,7 @@ impl AssetsWriter {
writeln!(file, "}}")?; writeln!(file, "}}")?;
} }
writeln!(file, "{indent}#[allow(dead_code)]")?;
writeln!(file, "{indent}pub struct Assets {{")?; writeln!(file, "{indent}pub struct Assets {{")?;
for asset_name in root.assets.keys() { for asset_name in root.assets.keys() {
writeln!( writeln!(