mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
more edge case handling
This commit is contained in:
parent
9114397803
commit
2dcd691f66
9 changed files with 37 additions and 24 deletions
|
|
@ -3,7 +3,6 @@ use crate::event::{param_parse_with, parse_field, quoted, ParamIter};
|
|||
use crate::raw_event::{subject_parser, RawSubject};
|
||||
use crate::{Error, Event, Result};
|
||||
use std::net::SocketAddr;
|
||||
use std::num::NonZeroU32;
|
||||
|
||||
#[derive(Debug, Event)]
|
||||
pub struct ShotFiredEvent<'a> {
|
||||
|
|
@ -20,9 +19,9 @@ pub struct DamageEvent<'a> {
|
|||
#[event(name = "against")]
|
||||
#[event(default)]
|
||||
pub target: RawSubject<'a>,
|
||||
pub damage: Option<NonZeroU32>,
|
||||
pub damage: Option<i64>,
|
||||
#[event(name = "realdamage")]
|
||||
pub real_damage: Option<NonZeroU32>,
|
||||
pub real_damage: Option<i64>,
|
||||
pub weapon: Option<&'a str>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue