1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

keep baselineprops seperate and add some tracing

This commit is contained in:
Robin Appelman 2021-07-29 19:16:24 +02:00
commit 24e83957d5
8 changed files with 213 additions and 40 deletions

View file

@ -57,15 +57,14 @@ impl EntityDump {
tick,
server_class: classes[usize::from(entity.server_class)].name.clone(),
id: entity.entity_index,
pvs: entity.pvs.into(),
props: entity
.props
.into_iter()
.into_props()
.map(|prop| {
let (table_name, prop_name) = &prop_names[&prop.identifier];
(format!("{}.{}", table_name, prop_name), prop.value)
})
.collect(),
pvs: entity.pvs.into(),
}
}
}