pub struct MinBloopsEvaluator { /* private fields */ }Expand description
Evaluates that the player has at least a given number of total bloops.
This evaluator returns true if the total number of bloops associated with
the player meets or exceeds the configured minimum count. It can be used to
gate achievements based on accumulated activity.
Implementations§
Source§impl MinBloopsEvaluator
impl MinBloopsEvaluator
Sourcepub fn new(min_count: usize) -> Self
pub fn new(min_count: usize) -> Self
Creates a new MinBloopsEvaluator with a given min count.
§Examples
use bloop_server_framework::evaluator::min_bloops::MinBloopsEvaluator;
let evaluator = MinBloopsEvaluator::new(10_000);Trait Implementations§
Source§impl Debug for MinBloopsEvaluator
impl Debug for MinBloopsEvaluator
Source§impl<Player: PlayerInfo, Metadata, Trigger> Evaluator<Player, Metadata, Trigger> for MinBloopsEvaluator
impl<Player: PlayerInfo, Metadata, Trigger> Evaluator<Player, Metadata, Trigger> for MinBloopsEvaluator
Source§fn evaluate(
&self,
ctx: &AchievementContext<'_, Player, Metadata, Trigger>,
) -> impl Into<EvalResult>
fn evaluate( &self, ctx: &AchievementContext<'_, Player, Metadata, Trigger>, ) -> impl Into<EvalResult>
Evaluate the achievement for the given context.
Auto Trait Implementations§
impl Freeze for MinBloopsEvaluator
impl RefUnwindSafe for MinBloopsEvaluator
impl Send for MinBloopsEvaluator
impl Sync for MinBloopsEvaluator
impl Unpin for MinBloopsEvaluator
impl UnsafeUnpin for MinBloopsEvaluator
impl UnwindSafe for MinBloopsEvaluator
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> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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