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 duplicate 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 for MaxPowerDef
impl PartialEq for MaxPowerDef
impl StructuralPartialEq for MaxPowerDef
Auto Trait Implementations§
impl Freeze for MaxPowerDef
impl RefUnwindSafe for MaxPowerDef
impl Send for MaxPowerDef
impl Sync for MaxPowerDef
impl Unpin for MaxPowerDef
impl UnwindSafe for MaxPowerDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more