derive GameEvent parsing

This commit is contained in:
Robin Appelman 2023-03-11 22:39:31 +01:00
commit f5957059d8
10 changed files with 116 additions and 121 deletions

View file

@ -123,3 +123,15 @@ pub struct ExtinguishedEvent<'a> {
pub attacker_position: Option<(i32, i32, i32)>,
pub victim_position: Option<(i32, i32, i32)>,
}
#[derive(Debug, Event)]
pub struct SayEvent<'a> {
#[event(unnamed)]
pub text: &'a str,
}
#[derive(Debug, Event)]
pub struct SayTeamEvent<'a> {
#[event(unnamed)]
pub text: &'a str,
}