New: initial functionality

This commit is contained in:
Pavel Perestoronin committed 2022-12-02 23:56:42 +01:00
1 parent 31b3c21b65
commit 3e5ad63679
19 files changed
+309 -1

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
use ::prost::Message;
#[derive(Message)]
pub struct BattleResults {
#[prost(int64, tag = "2")]
pub timestamp: i64,
#[prost(message, repeated, tag = "201")]
pub players: Vec<Player>,
}
#[derive(Message)]
pub struct Player {
#[prost(uint32, tag = "1")]
pub account_id: u32,
#[prost(message, required, tag = "2")]
pub info: PlayerInfo,
}
#[derive(Message)]
pub 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,
}