pub(crate) struct ActiveCast {
pub spell_id: SpellIdx,
pub action: Option<LocalDamageActionIdx>,
pub school: SpellSchoolMask,
pub damage_pushback: bool,
pub ends_at: SimTime,
pub interruptible: bool,
pub pushback_count: u8,
pub empower_rank: u8,
pub target: Option<EnemyIdx>,
}Fields§
§spell_id: SpellIdx§action: Option<LocalDamageActionIdx>§school: SpellSchoolMask§damage_pushback: bool§ends_at: SimTime§interruptible: bool§pushback_count: u8§empower_rank: u8§target: Option<EnemyIdx>Implementations§
Source§impl ActiveCast
impl ActiveCast
pub(crate) const fn new( spell_id: SpellIdx, school: SpellSchoolMask, ends_at: SimTime, ) -> Self
pub(crate) const fn with_action(self, action: LocalDamageActionIdx) -> Self
pub(crate) const fn with_damage_pushback(self, enabled: bool) -> Self
pub(crate) const fn with_empower( self, empower_rank: u8, target: EnemyIdx, ) -> Self
Trait Implementations§
Source§impl Clone for ActiveCast
impl Clone for ActiveCast
Source§fn clone(&self) -> ActiveCast
fn clone(&self) -> ActiveCast
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 ActiveCast
impl Debug for ActiveCast
Source§impl PartialEq for ActiveCast
impl PartialEq for ActiveCast
impl Copy for ActiveCast
impl Eq for ActiveCast
impl StructuralPartialEq for ActiveCast
Auto Trait Implementations§
impl Freeze for ActiveCast
impl RefUnwindSafe for ActiveCast
impl Send for ActiveCast
impl Sync for ActiveCast
impl Unpin for ActiveCast
impl UnsafeUnpin for ActiveCast
impl UnwindSafe for ActiveCast
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