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

flatten sendtables in parserstate only when entities are handled

This commit is contained in:
Robin Appelman 2019-08-30 00:01:52 +02:00
commit df6374f219
4 changed files with 52 additions and 51 deletions

View file

@ -30,15 +30,8 @@ impl MessageHandler for SendPropAnalyser {
false
}
fn handle_data_tables(&mut self, tables: &[SendTable]) {
self.tables = tables
.iter()
.map(|v| ParseSendTable {
name: v.name.clone(),
props: v.props.clone(),
needs_decoder: v.needs_decoder,
})
.collect()
fn handle_data_tables(&mut self, tables: &[ParseSendTable]) {
self.tables = tables.to_vec()
}
fn get_output(self, state: ParserState) -> Self::Output {