#![allow(dead_code)] use crate::photon_messages; use super::player::StaticId; #[derive(Debug, Clone, PartialEq)] pub struct Player { pub id: StaticId, pub name: String, } #[derive(Debug, Clone, PartialEq)] pub struct Damage { pub source: StaticId, pub target: Option, pub value: f32, } #[derive(Debug, Clone, PartialEq)] pub struct Fame { pub source: StaticId, pub value: f32, } #[derive(Debug, Clone, PartialEq)] pub struct Items { pub source: StaticId, pub value: photon_messages::Items, } #[derive(Debug, Clone, PartialEq)] pub enum Event { MainPlayerAppeared(Player), PlayerAppeared(Player), DamageDone(Damage), HealthReceived(Damage), ZoneChange, EnterCombat(Player), LeaveCombat(Player), UpdateFame(Fame), UpdateItems(Items), }