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

handler multiplexer

This commit is contained in:
Robin Appelman 2019-12-14 16:26:24 +01:00
commit 1709082228
8 changed files with 47 additions and 12 deletions

View file

@ -109,7 +109,7 @@ impl MessageHandler for EntityDumper {
fn handle_string_entry(&mut self, table: &String, _index: usize, entry: &StringTableEntry) {}
fn get_output(self, state: ParserState) -> Self::Output {
fn get_output(self, state: &ParserState) -> Self::Output {
self.entities
.into_iter()
.map(|(tick, entity)| EntityDump::from_entity(entity, tick, &state.server_classes))

View file

@ -36,7 +36,7 @@ impl MessageHandler for SendPropAnalyser {
self.tables = tables.to_vec()
}
fn get_output(self, state: ParserState) -> Self::Output {
fn get_output(self, state: &ParserState) -> Self::Output {
self.tables
}
}