This commit is contained in:
Robin Appelman 2021-08-23 22:49:26 +02:00
commit 8a88e452ea
13 changed files with 291 additions and 284 deletions

View file

@ -3,7 +3,7 @@ mod medic;
mod player;
use crate::event::game::{RoundLengthEvent, RoundWinEvent};
use crate::{RawEvent, RawEventType};
use crate::{RawEvent, RawEventType, SubjectId};
pub use game::*;
pub use medic::*;
use nom::bytes::complete::{tag, take_while};
@ -46,6 +46,12 @@ impl<'a, T> GameEventErrTrait<T> for IResult<&str, T> {
}
}
#[derive(Debug)]
pub struct EventMeta {
pub time: u32,
pub subject: SubjectId,
}
#[derive(Debug)]
pub enum GameEvent<'a> {
ShotFired(ShotFiredEvent<'a>),