mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
derive GameEvent parsing
This commit is contained in:
parent
ab5a061eb0
commit
f5957059d8
10 changed files with 116 additions and 121 deletions
|
|
@ -123,3 +123,15 @@ pub struct ExtinguishedEvent<'a> {
|
|||
pub attacker_position: Option<(i32, i32, i32)>,
|
||||
pub victim_position: Option<(i32, i32, i32)>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Event)]
|
||||
pub struct SayEvent<'a> {
|
||||
#[event(unnamed)]
|
||||
pub text: &'a str,
|
||||
}
|
||||
|
||||
#[derive(Debug, Event)]
|
||||
pub struct SayTeamEvent<'a> {
|
||||
#[event(unnamed)]
|
||||
pub text: &'a str,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue