mirror of
https://codeberg.org/icewind/log-normalizer.git
synced 2026-11-30 02:20:47 +01:00
flake reorg
This commit is contained in:
parent
9bd74a5a29
commit
6fe18f9771
30 changed files with 146 additions and 214 deletions
|
|
@ -2,7 +2,7 @@ pub use crate::data::TeamId;
|
|||
use crate::data::{GameMode, MapType};
|
||||
use crate::raw::RawLog;
|
||||
pub use crate::raw::{
|
||||
ChatMessage, ClassNumbers, Event, KillStreak, Player, RoundPlayer, Team, Teams, Uploader,
|
||||
ChatMessage, ClassNumbers, Event, KillStreak, Player, RoundPlayer, Teams, Uploader,
|
||||
};
|
||||
use chrono::{DateTime, NaiveDateTime, Utc};
|
||||
use serde::Deserialize;
|
||||
|
|
@ -12,6 +12,7 @@ use steamid_ng::SteamID;
|
|||
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
#[serde(from = "crate::raw::RawLog")]
|
||||
#[allow(dead_code)]
|
||||
pub struct NormalizedLog {
|
||||
pub version: u8,
|
||||
pub length: u32,
|
||||
|
|
@ -45,6 +46,7 @@ impl NormalizedLog {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[allow(dead_code)]
|
||||
pub struct Info {
|
||||
pub map: String,
|
||||
pub total_length: u32,
|
||||
|
|
@ -96,6 +98,7 @@ impl Info {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[allow(dead_code)]
|
||||
pub struct Round {
|
||||
pub start_time: u64,
|
||||
pub winner: Option<TeamId>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue