Two players in the zone, overall & last fight interface
This commit is contained in:
+14
-3
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user