pub struct AbilityStoneResolver<'a> { /* private fields */ }Expand description
Everything needed to resolve a caster’s ability-stone modifiers at cast
time. Combatants without an owner character state (mobs, arena filler bots)
use AbilityStoneResolver::none and always get identity modifiers.
Implementations§
Source§impl<'a> AbilityStoneResolver<'a>
impl<'a> AbilityStoneResolver<'a>
pub const fn new( sockets: &'a AbilityStoneSockets, owned: &'a [OwnedAbilityStone], active_side: WorldSide, missing_mana_fraction: f64, ) -> Self
pub fn active_side(&self) -> WorldSide
Sourcepub fn mods_for(
&self,
config: &GameConfig,
ability_id: AbilityId,
ability_level: i64,
) -> AbilityStoneMods
pub fn mods_for( &self, config: &GameConfig, ability_id: AbilityId, ability_level: i64, ) -> AbilityStoneMods
Aggregated modifiers of the stones active on ability_id at
ability_level, with the missing-mana term already resolved into
damage_mult.
Trait Implementations§
Source§impl<'a> Clone for AbilityStoneResolver<'a>
impl<'a> Clone for AbilityStoneResolver<'a>
Source§fn clone(&self) -> AbilityStoneResolver<'a>
fn clone(&self) -> AbilityStoneResolver<'a>
Returns a copy 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 AbilityStoneResolver<'a>
impl<'a> Debug for AbilityStoneResolver<'a>
Source§impl Default for AbilityStoneResolver<'_>
impl Default for AbilityStoneResolver<'_>
impl<'a> Copy for AbilityStoneResolver<'a>
Auto Trait Implementations§
impl<'a> Freeze for AbilityStoneResolver<'a>
impl<'a> RefUnwindSafe for AbilityStoneResolver<'a>
impl<'a> Send for AbilityStoneResolver<'a>
impl<'a> Sync for AbilityStoneResolver<'a>
impl<'a> Unpin for AbilityStoneResolver<'a>
impl<'a> UnwindSafe for AbilityStoneResolver<'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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].