mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
pass message to analysers by ref
This commit is contained in:
parent
8e39a1ed50
commit
4bd352feb9
10 changed files with 42 additions and 51 deletions
|
|
@ -26,7 +26,7 @@ impl MessageHandler for AllMessages {
|
|||
true
|
||||
}
|
||||
|
||||
fn handle_message(&mut self, message: Message, tick: u32) {
|
||||
fn handle_message(&mut self, message: &Message, tick: u32) {
|
||||
test::black_box(message);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,10 +26,6 @@ impl MessageHandler for SendPropAnalyser {
|
|||
false
|
||||
}
|
||||
|
||||
fn handle_message(&mut self, message: Message, tick: u32) {}
|
||||
|
||||
fn handle_string_entry(&mut self, table: &String, _index: usize, entry: &StringTableEntry) {}
|
||||
|
||||
fn get_output(self, state: ParserState) -> Self::Output {
|
||||
state
|
||||
.send_tables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue