Struct cnmo_parse::cnma::MaxPowerDef
source · pub struct MaxPowerDef {
pub id: u8,
pub speed: f32,
pub jump: f32,
pub gravity: f32,
pub hpcost: f32,
pub strength: f32,
pub ability: Option<MaxPowerAbility>,
}Expand description
A power defintion for a particular skin id, or any id. These are activated when hitting the MaxPower trigger in game and modify your player stats.
Fields§
§id: u8The skin id for this power definition
speed: f32The speed multiplier
jump: f32Jump multiplier
gravity: f32Gravity multiplier
hpcost: f32How many hp points are removed per second while the power is active
strength: f32The strength multiplier
ability: Option<MaxPowerAbility>An optional double jump ability.
Trait Implementations§
source§impl Clone for MaxPowerDef
impl Clone for MaxPowerDef
source§fn clone(&self) -> MaxPowerDef
fn clone(&self) -> MaxPowerDef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MaxPowerDef
impl Debug for MaxPowerDef
source§impl Default for MaxPowerDef
impl Default for MaxPowerDef
source§fn default() -> MaxPowerDef
fn default() -> MaxPowerDef
Returns the “default value” for a type. Read more
source§impl PartialEq<MaxPowerDef> for MaxPowerDef
impl PartialEq<MaxPowerDef> for MaxPowerDef
source§fn eq(&self, other: &MaxPowerDef) -> bool
fn eq(&self, other: &MaxPowerDef) -> bool
This method tests for
self and other values to be equal, and is used
by ==.