Struct CriticalHitEvent
pub struct CriticalHitEvent<'a> {
pub target_kind: &'a str,
pub vanilla_critical: bool,
pub critical: bool,
pub damage_multiplier: f32,
}Expand description
What Hooks::critical_hit is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§target_kind: &'a str§vanilla_critical: bool§critical: bool§damage_multiplier: f32Auto Trait Implementations§
impl<'a> Freeze for CriticalHitEvent<'a>
impl<'a> RefUnwindSafe for CriticalHitEvent<'a>
impl<'a> Send for CriticalHitEvent<'a>
impl<'a> Sync for CriticalHitEvent<'a>
impl<'a> Unpin for CriticalHitEvent<'a>
impl<'a> UnsafeUnpin for CriticalHitEvent<'a>
impl<'a> UnwindSafe for CriticalHitEvent<'a>
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