pub struct DamageEvent {
pub base_damage: f32,
pub element: Element,
pub attacker_pos: Vec3,
pub defender_pos: Vec3,
pub roll: f32,
}Expand description
A single damage application.
Fields§
§base_damage: f32§element: Element§attacker_pos: Vec3§defender_pos: Vec3§roll: f32Applies a RNG seed for deterministic crit resolution.
Trait Implementations§
Source§impl Clone for DamageEvent
impl Clone for DamageEvent
Source§fn clone(&self) -> DamageEvent
fn clone(&self) -> DamageEvent
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 moreAuto Trait Implementations§
impl Freeze for DamageEvent
impl RefUnwindSafe for DamageEvent
impl Send for DamageEvent
impl Sync for DamageEvent
impl Unpin for DamageEvent
impl UnsafeUnpin for DamageEvent
impl UnwindSafe for DamageEvent
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