pub struct HitResult {
pub final_damage: f32,
pub is_crit: bool,
pub is_dodge: bool,
pub is_block: bool,
pub is_kill: bool,
pub element: Element,
pub pre_resist: f32,
pub post_resist: f32,
pub post_armor: f32,
pub overkill: f32,
}Expand description
Full result of damage resolution.
Fields§
§final_damage: f32§is_crit: bool§is_dodge: bool§is_block: bool§is_kill: bool§element: Element§pre_resist: f32§post_resist: f32§post_armor: f32§overkill: f32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HitResult
impl RefUnwindSafe for HitResult
impl Send for HitResult
impl Sync for HitResult
impl Unpin for HitResult
impl UnsafeUnpin for HitResult
impl UnwindSafe for HitResult
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