Two players in the zone, overall & last fight interface

This commit is contained in:
Wiktor Mazur
2019-09-15 12:53:05 +02:00
parent 9390e2623d
commit ead1da9731
5 changed files with 591 additions and 111 deletions
+14 -3
View File
@@ -1,7 +1,18 @@
#[derive(Debug, PartialEq)]
use super::traits::DamageStats;
#[derive(Debug, PartialEq, Clone)]
pub struct PlayerStatistics {
pub player: String,
pub damage: f32,
pub time_in_combat: f32,
pub dps: f32
}
pub dps: f32,
}
impl DamageStats for PlayerStatistics {
fn damage(&self) -> f32 {
self.damage
}
fn time_in_combat(&self) -> f32 {
self.time_in_combat
}
}