Map generation is separated

This commit is contained in:
2026-06-14 03:22:41 +02:00
parent 70924e13c8
commit 4d50c8c1be
3 changed files with 41 additions and 47 deletions
+6 -2
View File
@@ -195,7 +195,9 @@ impl GenRust for TopLevelKind {
cg.indent += 1;
for field in fields {
cg.add_indentedln(&field.get_rust());
cg.add_indented("");
field.gen_rust(ctx, cg);
cg.addln("");
}
cg.indent -= 1;
@@ -216,7 +218,9 @@ impl GenRust for TopLevelKind {
cg.indent += 1;
for field in fields {
cg.add_indentedln(&(field.get_rust() + ","));
cg.add_indented("");
field.gen_rust(ctx, cg);
cg.addln(",");
}
cg.indent -= 1;