mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
fix visiblity, add copy/clone
This commit is contained in:
parent
f345ce0de7
commit
f4cd31b956
6 changed files with 8 additions and 8 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -1178,7 +1178,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "tf-log-parser"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
dependencies = [
|
||||
"ahash",
|
||||
"chrono",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "tf-log-parser"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
edition = "2021"
|
||||
rust-version = "1.90.0"
|
||||
description = "TF2 log parser with a focus on speed and flexibility"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ mod weapons;
|
|||
use serde::Serialize;
|
||||
pub use weapons::Weapon;
|
||||
|
||||
#[derive(Serialize, PartialEq)]
|
||||
#[derive(Serialize, PartialEq, Clone, Copy)]
|
||||
pub struct Position {
|
||||
pub x: i32,
|
||||
pub y: i32,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use strum::{AsRefStr, EnumString};
|
|||
|
||||
use crate::Class;
|
||||
|
||||
#[derive(EnumString, AsRefStr, Debug, PartialEq)]
|
||||
#[derive(EnumString, AsRefStr, Debug, PartialEq, Clone)]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum Weapon {
|
||||
Letranger,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use ahash::AHashMap;
|
|||
use serde::Serialize;
|
||||
use steamid_ng::SteamID;
|
||||
|
||||
#[derive(Serialize, PartialEq)]
|
||||
#[derive(Serialize, PartialEq, Clone, Copy)]
|
||||
pub struct Participant {
|
||||
#[serde(with = "super::serde_steamid")]
|
||||
pub id: SteamID,
|
||||
|
|
@ -23,7 +23,7 @@ impl Participant {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, PartialEq)]
|
||||
#[derive(Serialize, PartialEq, Clone, Copy)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub enum KillKind {
|
||||
Normal,
|
||||
|
|
@ -43,7 +43,7 @@ impl KillKind {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, PartialEq)]
|
||||
#[derive(Serialize, PartialEq, Clone)]
|
||||
pub struct Kill {
|
||||
pub time: u32,
|
||||
pub killer: Participant,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ pub use chat::{ChatMessage, ChatMessages, ChatType};
|
|||
use chrono::NaiveDateTime;
|
||||
pub use classstats::{ClassStats, ClassStatsHandler};
|
||||
pub use healspread::HealSpread;
|
||||
pub use kills::{Kill, KillKind, Kills};
|
||||
pub use kills::{Kill, KillKind, Kills, Participant};
|
||||
pub use lobbysettings::{
|
||||
LobbySettingsError, LobbySettingsHandler, Location, Settings as LobbySettings,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue