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:
parent
eb93434017
commit
df6374f219
4 changed files with 52 additions and 51 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue