Add scoreboard with data to demo view

This commit is contained in:
Lol3rrr
2024-09-17 22:31:36 +02:00
parent b216022768
commit 118a25aa9a
3 changed files with 119 additions and 16 deletions

View File

@@ -15,3 +15,18 @@ pub struct DemoInfo {
pub id: i64,
pub map: String,
}
pub mod demo_analysis {
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ScoreBoard {
pub team1: Vec<ScoreBoardPlayer>,
pub team2: Vec<ScoreBoardPlayer>,
}
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ScoreBoardPlayer {
pub name: String,
pub kills: usize,
pub deaths: usize,
}
}