mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-21 10:27:01 +02:00
New: add tank_id
This commit is contained in:
1 parent
4edcc50a87
commit
bc3b39e764
2 files changed
+7
No files matched your search
@@ -125,6 +125,10 @@ pub struct PlayerResultsInfo {
|
||||
#[prost(uint32, tag = "101")]
|
||||
pub account_id: u32,
|
||||
|
||||
/// Player's tank ID as per Wargaming.net API.
|
||||
#[prost(uint32, tag = "103")]
|
||||
pub tank_id: u32,
|
||||
|
||||
/// Rating for the Rating Battles.
|
||||
///
|
||||
/// Note, that this is **not** the game client's displayed rating.
|
||||
|
||||
@@ -38,6 +38,7 @@ fn player_results_ok() -> Result<()> {
|
||||
assert_eq!(snak_the_ripper_info.n_shots, 6);
|
||||
assert_eq!(snak_the_ripper_info.n_hits_dealt, 5);
|
||||
assert_eq!(snak_the_ripper_info.n_penetrations_dealt, 5);
|
||||
assert_eq!(snak_the_ripper_info.tank_id, 5233);
|
||||
|
||||
let zeekrab_info = &battle_results.player_results[10].info;
|
||||
assert_eq!(zeekrab_info.base_xp, 701);
|
||||
@@ -54,6 +55,7 @@ fn player_results_ok() -> Result<()> {
|
||||
assert_eq!(zeekrab_info.n_non_penetrating_hits_received, 0);
|
||||
assert_eq!(zeekrab_info.victory_points_1, 40);
|
||||
assert_eq!(zeekrab_info.victory_points_2, 40);
|
||||
assert_eq!(zeekrab_info.tank_id, 26657);
|
||||
|
||||
let balls_soup_info = &battle_results.player_results[8].info;
|
||||
assert_eq!(balls_soup_info.damage_dealt, 2064);
|
||||
@@ -64,6 +66,7 @@ fn player_results_ok() -> Result<()> {
|
||||
assert_eq!(balls_soup_info.n_hits_received, 6);
|
||||
assert_eq!(balls_soup_info.n_penetrations_received, 4);
|
||||
assert_eq!(balls_soup_info.n_non_penetrating_hits_received, 2);
|
||||
assert_eq!(balls_soup_info.tank_id, 4737);
|
||||
|
||||
let ceaser_info = &battle_results.player_results[0].info;
|
||||
assert_eq!(ceaser_info.damage_dealt, 919);
|
||||
|
||||
Reference in new issue
Block a user