mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-25 03:09:49 +01:00
Break: make winner_team_number optional
This commit is contained in:
1 parent
59353a9aca
commit
897f98c17c
2 files changed
+4
-12
No files matched your search
@@ -22,8 +22,8 @@ pub struct BattleResults {
|
||||
#[prost(int64, tag = "2")]
|
||||
pub timestamp: i64,
|
||||
|
||||
#[prost(enumeration = "WinnerTeamNumber", tag = "3")]
|
||||
pub winner_team_number: i32,
|
||||
#[prost(enumeration = "TeamNumber", optional, tag = "3")]
|
||||
pub winner_team_number: Option<i32>,
|
||||
|
||||
/// Replay's author results.
|
||||
#[prost(message, required, tag = "8")]
|
||||
@@ -85,14 +85,6 @@ pub enum TeamNumber {
|
||||
Two = 2,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Enumeration, Serialize)]
|
||||
#[repr(i32)]
|
||||
pub enum WinnerTeamNumber {
|
||||
Neither = 0,
|
||||
One = 1,
|
||||
Two = 2,
|
||||
}
|
||||
|
||||
/// Player's battle results.
|
||||
#[derive(Message, Serialize)]
|
||||
pub struct PlayerResults {
|
||||
|
||||
Reference in new issue
Block a user