mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-11-01 14:40:33 +01:00
💥 Add more maps and result fields
This commit is contained in:
1 parent
da0646f40a
commit
50f15b9ae9
3 files changed
+25
-4
No files matched your search
@@ -197,13 +197,31 @@ impl PlayerResultsInfo {
|
|||||||
|
|
||||||
#[derive(Message, Serialize)]
|
#[derive(Message, Serialize)]
|
||||||
pub struct Author {
|
pub struct Author {
|
||||||
|
/// # Note
|
||||||
|
///
|
||||||
|
/// The field is `-2` if the player is auto-destroyed by inactivity.
|
||||||
|
#[prost(int32, tag = "2")]
|
||||||
|
pub hitpoints_left: i32,
|
||||||
|
|
||||||
/// Earned credits, including premium and special awards and medals.
|
/// Earned credits, including premium and special awards and medals.
|
||||||
#[prost(uint32, tag = "2")]
|
#[prost(uint32, tag = "2")]
|
||||||
pub credits_earned: u32,
|
pub total_credits: u32,
|
||||||
|
|
||||||
/// Combat XP, including premium.
|
/// Combat XP, including premium.
|
||||||
#[prost(uint32, tag = "3")]
|
#[prost(uint32, tag = "3")]
|
||||||
pub combat_xp: u32,
|
pub total_xp: u32,
|
||||||
|
|
||||||
|
#[prost(uint32, tag = "4")]
|
||||||
|
pub n_shots: u32,
|
||||||
|
|
||||||
|
#[prost(uint32, tag = "5")]
|
||||||
|
pub n_hits: u32,
|
||||||
|
|
||||||
|
#[prost(uint32, tag = "6")]
|
||||||
|
pub n_splashes: u32,
|
||||||
|
|
||||||
|
#[prost(uint32, tag = "7")]
|
||||||
|
pub n_penetrations: u32,
|
||||||
|
|
||||||
#[prost(uint32, tag = "8")]
|
#[prost(uint32, tag = "8")]
|
||||||
pub damage_dealt: u32,
|
pub damage_dealt: u32,
|
||||||
|
|||||||
@@ -12,12 +12,15 @@ pub enum MapId {
|
|||||||
DeadRail = 7,
|
DeadRail = 7,
|
||||||
FortDespair = 8,
|
FortDespair = 8,
|
||||||
Himmelsdorf = 9,
|
Himmelsdorf = 9,
|
||||||
|
BlackGoldville = 10,
|
||||||
OasisPalms = 11,
|
OasisPalms = 11,
|
||||||
GhostFactory = 12,
|
GhostFactory = 12,
|
||||||
Molendijk = 14,
|
Molendijk = 14,
|
||||||
PortBay = 15,
|
PortBay = 15,
|
||||||
|
WinterMalinovka = 19,
|
||||||
Castilla = 20,
|
Castilla = 20,
|
||||||
Canal = 21,
|
Canal = 21,
|
||||||
|
Vineyards = 23,
|
||||||
YamatoHarbor = 25,
|
YamatoHarbor = 25,
|
||||||
Canyon = 27,
|
Canyon = 27,
|
||||||
MayanRuins = 30,
|
MayanRuins = 30,
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ fn player_results_ok() -> Result<()> {
|
|||||||
assert_eq!(battle_results.room_type(), RoomType::Regular);
|
assert_eq!(battle_results.room_type(), RoomType::Regular);
|
||||||
|
|
||||||
assert_eq!(battle_results.author.team_number, 2);
|
assert_eq!(battle_results.author.team_number, 2);
|
||||||
assert_eq!(battle_results.author.credits_earned, 59518);
|
assert_eq!(battle_results.author.total_credits, 59518);
|
||||||
assert_eq!(battle_results.author.combat_xp, 5255);
|
assert_eq!(battle_results.author.total_xp, 5255);
|
||||||
assert_eq!(battle_results.author.damage_dealt, 1438);
|
assert_eq!(battle_results.author.damage_dealt, 1438);
|
||||||
assert_eq!(battle_results.author.account_id, 594778041);
|
assert_eq!(battle_results.author.account_id, 594778041);
|
||||||
assert_eq!(battle_results.free_xp, 260);
|
assert_eq!(battle_results.free_xp, 260);
|
||||||
|
|||||||
Reference in new issue
Block a user