mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
handler multiplexer
This commit is contained in:
parent
5f6cfe077e
commit
1709082228
8 changed files with 47 additions and 12 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue