pub(in systems) struct DamageRequest {
pub effect: DamageEffectRef,
pub geometry_effect: DamageEffectRef,
pub source_position: Option<SpatialTransform>,
pub destination: Option<SpatialTransform>,
pub profile_spell_id: u32,
pub base_points: Option<f64>,
pub coef: f64,
pub power: f64,
pub weapon: WeaponDamageInput,
pub flags: DamageFlags,
}Fields§
§effect: DamageEffectRef§geometry_effect: DamageEffectRef§source_position: Option<SpatialTransform>§destination: Option<SpatialTransform>§profile_spell_id: u32§base_points: Option<f64>§coef: f64§power: f64§weapon: WeaponDamageInput§flags: DamageFlagsImplementations§
Source§impl DamageRequest
impl DamageRequest
const fn new(payload: DamagePayload, power: f64) -> Self
const fn profile(self, spell_id: u32) -> Self
const fn effect(self, effect: DamageEffectRef) -> Self
const fn geometry( self, effect: DamageEffectRef, source_position: Option<SpatialTransform>, destination: Option<SpatialTransform>, ) -> Self
const fn weapon(self, weapon: WeaponDamageInput) -> Self
const fn base_points(self, base_points: f64) -> Self
const fn optional_base_points(self, base_points: Option<f64>) -> Self
Trait Implementations§
Source§impl Clone for DamageRequest
impl Clone for DamageRequest
Source§fn clone(&self) -> DamageRequest
fn clone(&self) -> DamageRequest
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 DamageRequest
impl Debug for DamageRequest
impl Copy for DamageRequest
Auto Trait Implementations§
impl Freeze for DamageRequest
impl RefUnwindSafe for DamageRequest
impl Send for DamageRequest
impl Sync for DamageRequest
impl Unpin for DamageRequest
impl UnsafeUnpin for DamageRequest
impl UnwindSafe for DamageRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more