pub(in state) struct BuffTotalsCaches {
actor: ActorCaches<BuffCacheEntry>,
actor_only: ActorCaches<BuffCacheEntry>,
damage: ActorCaches<DamageProjectionCacheEntry>,
player_scaling: Cell<PlayerScalingCacheEntry>,
}Expand description
Separate raw-actor and inherited-owner-filtered cache sets.
Fields§
§actor: ActorCaches<BuffCacheEntry>§actor_only: ActorCaches<BuffCacheEntry>§damage: ActorCaches<DamageProjectionCacheEntry>§player_scaling: Cell<PlayerScalingCacheEntry>Implementations§
Source§impl BuffTotalsCaches
impl BuffTotalsCaches
pub(super) fn new(enemy_count: usize) -> Self
pub(super) fn actor(&self, actor: ActorId, revision: u64) -> Option<BuffTotals>
pub(super) fn store_actor( &self, actor: ActorId, revision: u64, totals: &BuffTotals, )
pub(super) fn actor_only( &self, actor: ActorId, revision: u64, owner_revision: u64, ) -> Option<BuffTotals>
pub(super) fn store_actor_only( &self, actor: ActorId, revision: u64, owner_revision: u64, totals: &BuffTotals, )
pub(super) fn clear(&self)
pub(super) fn player_scaling(&self, revision: u64) -> Option<PlayerScalingBuffs>
pub(super) fn store_player_scaling( &self, revision: u64, buffs: PlayerScalingBuffs, )
pub(super) fn clear_player_scaling(&self)
fn damage( &self, actor: ActorId, key: DamageProjectionKey, ) -> Option<DamageBuffProjection>
fn store_damage( &self, actor: ActorId, key: DamageProjectionKey, projection: DamageBuffProjection, )
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BuffTotalsCaches
impl !RefUnwindSafe for BuffTotalsCaches
impl Send for BuffTotalsCaches
impl !Sync for BuffTotalsCaches
impl Unpin for BuffTotalsCaches
impl UnsafeUnpin for BuffTotalsCaches
impl UnwindSafe for BuffTotalsCaches
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
§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