mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
23 lines
495 B
Rust
23 lines
495 B
Rust
use tf_log_parser::{
|
|
event::{param_parse, parse_field, quoted, ParamIter},
|
|
Event, IResult,
|
|
};
|
|
|
|
#[derive(Event)]
|
|
pub struct DamageEvent<'a> {
|
|
#[event(name = "against")]
|
|
pub target: RawSubject<'a>,
|
|
pub damage: Option<NonZeroU32>,
|
|
#[event(name = "realdamage")]
|
|
pub real_damage: Option<NonZeroU32>,
|
|
pub weapon: Option<&'a str>,
|
|
}
|
|
|
|
#[derive(Event)]
|
|
pub struct ShotFiredEvent {
|
|
#[event(quoted)]
|
|
pub weapon: u32,
|
|
pub damage: Option<u32>,
|
|
}
|
|
|
|
pub fn main() {}
|