mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 12:50:49 +01:00
derive tweaks
This commit is contained in:
parent
9ab5d1903f
commit
1ce783ec11
12 changed files with 99 additions and 806 deletions
|
|
@ -1,12 +1,10 @@
|
|||
use tf_log_parser::{
|
||||
event::{param_parse, parse_field, quoted, ParamIter},
|
||||
Event, IResult,
|
||||
};
|
||||
use std::num::NonZeroU32;
|
||||
use tf_log_parser_derive::Event;
|
||||
|
||||
#[derive(Event)]
|
||||
pub struct DamageEvent<'a> {
|
||||
#[event(name = "against")]
|
||||
pub target: RawSubject<'a>,
|
||||
pub target: &'a str,
|
||||
pub damage: Option<NonZeroU32>,
|
||||
#[event(name = "realdamage")]
|
||||
pub real_damage: Option<NonZeroU32>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue