Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
✨ Replays: add platoon_id
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Dec 2, 2022
1 parent 7184546 commit 822a088
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test_replay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ pub fn run(opts: TestReplayOpts) -> Result {

info!(timestamp = ?battle_results.timestamp()?);
for player in &battle_results.players {
info!(player.account_id, player.info.nickname, player.info.team_number);
info!(
player.account_id,
player.info.nickname, player.info.team_number, player.info.platoon_id
);
}

Ok(())
Expand Down Expand Up @@ -70,6 +73,9 @@ struct PlayerInfo {
#[prost(string, tag = "1")]
pub nickname: String,

#[prost(uint32, optional, tag = "2")]
pub platoon_id: Option<u32>,

#[prost(uint32, tag = "3")]
pub team_number: u32,
}

0 comments on commit 822a088

Please sign in to comment.