pub struct ComboHit {
pub animation_id: String,
pub damage_multiplier: f32,
pub hitstop_duration: f32,
pub launch: bool,
pub knockback_force: f32,
pub can_cancel_into: Vec<String>,
pub hit_confirm_start: f32,
pub hit_confirm_end: f32,
pub glyph: char,
pub element: Option<Element>,
}Fields§
§animation_id: String§damage_multiplier: f32§hitstop_duration: f32§launch: bool§knockback_force: f32§can_cancel_into: Vec<String>§hit_confirm_start: f32§hit_confirm_end: f32§glyph: char§element: Option<Element>Implementations§
Source§impl ComboHit
impl ComboHit
pub fn new(anim: impl Into<String>, dmg_mult: f32) -> Self
pub fn heavy(anim: impl Into<String>, dmg_mult: f32) -> Self
pub fn launcher(anim: impl Into<String>) -> Self
pub fn with_element(self, el: Element) -> Self
pub fn with_cancel(self, combo_id: impl Into<String>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComboHit
impl RefUnwindSafe for ComboHit
impl Send for ComboHit
impl Sync for ComboHit
impl Unpin for ComboHit
impl UnsafeUnpin for ComboHit
impl UnwindSafe for ComboHit
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