replace items record with full end-of-game stats record
All checks were successful
record-daemon / Build, check and test (push) Successful in 2m5s

- record-daemon: remove items parsing module
- tauri-app: add items parsing from recorded end-of-game stats
This commit is contained in:
2026-03-26 18:47:19 +01:00
parent 506fc9827b
commit 0871703b11
8 changed files with 144 additions and 314 deletions

View File

@@ -13,7 +13,7 @@ use chrono::{DateTime, Duration, Utc};
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use crate::lqp::{GameEvent, ItemBuild, RunePage, SummonerSpells};
use crate::lqp::{GameEvent, RunePage, SummonerSpells};
/// A timeline of events for a recording.
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -67,9 +67,9 @@ pub struct Timeline {
/// Summoner spells.
#[serde(default)]
pub summoner_spells: Option<SummonerSpells>,
/// Final item build at game end.
/// Raw end-of-game stats JSON from the API.
#[serde(default)]
pub final_items: Option<ItemBuild>,
pub raw_end_game_stats: Option<serde_json::Value>,
/// All players in the game (puuid to summoner name mapping).
#[serde(default)]
pub all_players: Vec<PlayerIdentityInfo>,
@@ -104,7 +104,7 @@ impl Timeline {
final_stats: None,
runes: None,
summoner_spells: None,
final_items: None,
raw_end_game_stats: None,
all_players: Vec::new(),
}
}