Skip to main content

AuraData

Struct AuraData 

Source
pub struct AuraData {
Show 40 fields pub aura_id: u32, pub name_idx: u16, pub on: AuraOn, pub propagates_to_pet: bool, pub base_duration_ms: u32, pub doses: u8, pub max_stacks: u8, pub pandemic: bool, pub refresh_behavior: RefreshBehavior, pub duration_hasted: bool, pub shapeshift_form: i32, pub shapeshift_form_flags: i32, pub shapeshift_combat_round_time_ms: u32, pub effects: [Option<BuffEffect>; 16], pub periodic: Option<PeriodicData>, pub spell_group: Option<SpellGroup>, pub granted_aura_state: Option<AuraState>, pub crowd_control: Option<CrowdControlSemantic>, pub is_snapshot: bool, pub dynamic_tick_action: DynamicTickAction, pub apply_at_max_stacks: bool, pub reverse: bool, pub freeze_stacks: bool, pub tick_behavior: AuraTickBehavior, pub tick_stack_change: u8, pub async_stacks: bool, pub periodic_damage_scales_with_stacks: bool, pub interrupt_flags: SpellAuraInterruptFlags, pub reapply_on_expire: bool, pub application_excluded_auras: [u32; 5], pub application_followup_aura_id: u32, pub apply_effects: SpellEffectRange, pub apply_profile_spell_id: u32, pub on_consume: SpellEffectRange, pub tick_effects: SpellEffectRange, pub tick_profile_spell_id: u32, pub expire_trigger_spell_id: u32, pub expire_trigger_from_caster: bool, pub on_expire: Option<CastHookFn>, pub on_tick: Option<CastHookFn>,
}

Fields§

§aura_id: u32§name_idx: u16§on: AuraOn§propagates_to_pet: bool§base_duration_ms: u32§doses: u8§max_stacks: u8§pandemic: bool§refresh_behavior: RefreshBehavior§duration_hasted: bool§shapeshift_form: i32§shapeshift_form_flags: i32§shapeshift_combat_round_time_ms: u32

SpellShapeshiftForm.CombatRoundTime; non-zero when the form imposes its own swing period.

§effects: [Option<BuffEffect>; 16]§periodic: Option<PeriodicData>§spell_group: Option<SpellGroup>§granted_aura_state: Option<AuraState>§crowd_control: Option<CrowdControlSemantic>§is_snapshot: bool§dynamic_tick_action: DynamicTickAction§apply_at_max_stacks: bool§reverse: bool§freeze_stacks: bool§tick_behavior: AuraTickBehavior§tick_stack_change: u8§async_stacks: bool§periodic_damage_scales_with_stacks: bool§interrupt_flags: SpellAuraInterruptFlags§reapply_on_expire: bool§application_excluded_auras: [u32; 5]§application_followup_aura_id: u32§apply_effects: SpellEffectRange§apply_profile_spell_id: u32§on_consume: SpellEffectRange§tick_effects: SpellEffectRange§tick_profile_spell_id: u32§expire_trigger_spell_id: u32§expire_trigger_from_caster: bool§on_expire: Option<CastHookFn>§on_tick: Option<CastHookFn>

Implementations§

Source§

impl AuraData

Source

pub(crate) fn into_info(&self, ctx: &InfoCtx<'_>) -> AuraInfo

Lower this engine-side data struct into its introspection-facing info struct.

Generated by #[derive(LowerData)] on the corresponding *Def.

Source§

impl AuraData

Source

pub fn simple_player_buff( aura_id: u32, name_idx: u16, duration_ms: u32, effects: [Option<BuffEffect>; 16], ) -> Self

Single-stack, non-periodic player buff carrying effects for duration_ms.

Trait Implementations§

Source§

impl Clone for AuraData

Source§

fn clone(&self) -> AuraData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AuraData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for AuraData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> SpecConfig for T
where T: Any + Debug + Send,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> ResolverSyncBound for T
where T: Sync + ?Sized,