mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-12-08 06:09:46 +00:00
dont print fieldless elements seperate
This commit is contained in:
parent
cad1624990
commit
ab14bfdfa0
1 changed files with 7 additions and 17 deletions
|
|
@ -217,23 +217,13 @@ impl Struct {
|
|||
}
|
||||
}
|
||||
fn print(&self, n: usize, count: usize, entry: usize) {
|
||||
if self.fields.is_empty() {
|
||||
noita_api::print!(
|
||||
"{}[{entry}]{}{}<{}>",
|
||||
" ".repeat(n),
|
||||
"&".repeat(count),
|
||||
self.name,
|
||||
self.size
|
||||
)
|
||||
} else {
|
||||
noita_api::print!(
|
||||
"{}[{entry}]{}{}<{}>(",
|
||||
" ".repeat(n),
|
||||
"&".repeat(count),
|
||||
self.name,
|
||||
self.size,
|
||||
)
|
||||
}
|
||||
noita_api::print!(
|
||||
"{}[{entry}]{}{}<{}>",
|
||||
" ".repeat(n),
|
||||
"&".repeat(count),
|
||||
self.name,
|
||||
self.size
|
||||
);
|
||||
for f in self.fields.iter() {
|
||||
f.print(n + 1, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue