mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
21 lines
445 B
Rust
21 lines
445 B
Rust
use std::num::NonZeroU32;
|
|
use tf_log_parser_derive::Event;
|
|
|
|
#[derive(Event)]
|
|
pub struct DamageEvent<'a> {
|
|
#[event(name = "against")]
|
|
pub target: &'a str,
|
|
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() {}
|