1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
use enums::PowerupType;

/// The current player picked up a powerup.
#[derive(Copy, Clone, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct PlayerPowerup {
	#[cfg_attr(feature = "serde", serde(rename = "type"))]
	pub ty: PowerupType,
	// Maybe make this a Duration?
	/// Lifetime of the powerup, in milliseconds.
	pub duration: u32,
}