1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use types::{Player, Score};

/// Stats for the current player
#[derive(Copy, Clone, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct ScoreUpdate {
	pub id: Player,
	pub score: Score,
	pub earnings: Score,
	/// The number of unused upgrades that the player has.
	pub upgrades: u16,
	pub total_kills: u32,
	pub total_deaths: u32,
}