pub struct EffectLookup<'a> {
pub data: &'a ResolvedGameData,
pub effect: EffectRef,
}Expand description
Read-only resolved-data view for one spell effect.
Fields§
§data: &'a ResolvedGameData§effect: EffectRefImplementations§
Source§impl<'a> EffectLookup<'a>
impl<'a> EffectLookup<'a>
pub const fn new(data: &'a ResolvedGameData, effect: EffectRef) -> Self
pub fn effect_type(self) -> i32
pub fn effect_aura(self) -> i32
pub fn effect_misc_value_0(self) -> i32
pub fn effect_misc_value_1(self) -> i32
pub fn effect_attributes(self) -> i32
pub fn base_points(self) -> f64
pub fn ap_coef(self) -> f64
pub fn sp_coef(self) -> f64
pub fn coefficient(self) -> f64
pub fn amplitude(self) -> f64
pub fn period(self) -> f64
pub fn scaling_class(self) -> i32
pub fn trigger_spell(self) -> Option<SpellIdx>
Trait Implementations§
Source§impl<'a> Clone for EffectLookup<'a>
impl<'a> Clone for EffectLookup<'a>
Source§fn clone(&self) -> EffectLookup<'a>
fn clone(&self) -> EffectLookup<'a>
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<'a> Debug for EffectLookup<'a>
impl<'a> Debug for EffectLookup<'a>
impl<'a> Copy for EffectLookup<'a>
Auto Trait Implementations§
impl<'a> Freeze for EffectLookup<'a>
impl<'a> RefUnwindSafe for EffectLookup<'a>
impl<'a> Send for EffectLookup<'a>
impl<'a> Sync for EffectLookup<'a>
impl<'a> Unpin for EffectLookup<'a>
impl<'a> UnsafeUnpin for EffectLookup<'a>
impl<'a> UnwindSafe for EffectLookup<'a>
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