pub struct AutoAttackData {Show 13 fields
pub spell_id: u32,
pub swing_ms: u32,
pub ap_coef: f64,
pub is_physical: bool,
pub is_pet: bool,
pub npc_id: Option<u32>,
pub uses_spell_power: bool,
pub starts_active: bool,
pub on_crit_reduce_charge: Option<CritChargeReduction>,
pub miss_chance_hook: Option<fn(&HookCtx<'_>, SwingHand) -> Option<f64>>,
pub replacement_hook: Option<fn(&mut HookCtx<'_>, SwingHand) -> Option<SwingReplacement>>,
pub on_swing: Option<fn(&mut HookCtx<'_>, SwingEvent)>,
pub pet_action_bar: Option<PetActionBar>,
}Fields§
§spell_id: u32§swing_ms: u32§ap_coef: f64§is_physical: bool§is_pet: bool§npc_id: Option<u32>§uses_spell_power: bool§starts_active: bool§on_crit_reduce_charge: Option<CritChargeReduction>§miss_chance_hook: Option<fn(&HookCtx<'_>, SwingHand) -> Option<f64>>§replacement_hook: Option<fn(&mut HookCtx<'_>, SwingHand) -> Option<SwingReplacement>>§on_swing: Option<fn(&mut HookCtx<'_>, SwingEvent)>§pet_action_bar: Option<PetActionBar>Implementations§
Source§impl AutoAttackData
impl AutoAttackData
Sourcepub(crate) fn into_info(&self, ctx: &InfoCtx<'_>) -> AutoAttackInfo
pub(crate) fn into_info(&self, ctx: &InfoCtx<'_>) -> AutoAttackInfo
Lower this engine-side data struct into its introspection-facing info struct.
Generated by #[derive(LowerData)] on the corresponding *Def.
Trait Implementations§
Source§impl Clone for AutoAttackData
impl Clone for AutoAttackData
Source§fn clone(&self) -> AutoAttackData
fn clone(&self) -> AutoAttackData
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 AutoAttackData
impl Debug for AutoAttackData
impl Copy for AutoAttackData
Auto Trait Implementations§
impl Freeze for AutoAttackData
impl RefUnwindSafe for AutoAttackData
impl Send for AutoAttackData
impl Sync for AutoAttackData
impl Unpin for AutoAttackData
impl UnsafeUnpin for AutoAttackData
impl UnwindSafe for AutoAttackData
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